Update tab_timeline_wip.py

This commit is contained in:
2026-01-04 16:41:40 +01:00
committed by GitHub
parent d3deb58469
commit 7b4b0ff7ee

View File

@@ -96,6 +96,11 @@ def render_timeline_wip(data, file_path):
with c_h2:
st.write(""); st.write("")
if st.button("⏪ Restore This Version", type="primary", use_container_width=True, key=f"rst_{target_node_id}"):
# --- FIX: Cleanup 'batch_data' if restoring a Single File ---
if "batch_data" not in node_data and "batch_data" in data:
del data["batch_data"]
# -------------------------------------------------------------
data.update(node_data)
htree.head_id = target_node_id