From 7b4b0ff7ee478b8d89681a49adeea9e217ad5282 Mon Sep 17 00:00:00 2001 From: ethanfel Date: Sun, 4 Jan 2026 16:41:40 +0100 Subject: [PATCH] Update tab_timeline_wip.py --- tab_timeline_wip.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tab_timeline_wip.py b/tab_timeline_wip.py index 44e627d..bc4dd3c 100644 --- a/tab_timeline_wip.py +++ b/tab_timeline_wip.py @@ -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