Fix mass update not refreshing UI
Increment ui_reset_token after mass update save so Streamlit widgets re-read their values, matching all other save operations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,7 @@ def _render_mass_update(batch_list, data, file_path, key_prefix):
|
|||||||
htree.commit(snapshot_payload, f"Mass update: {', '.join(selected_keys)}")
|
htree.commit(snapshot_payload, f"Mass update: {', '.join(selected_keys)}")
|
||||||
data[KEY_HISTORY_TREE] = htree.to_dict()
|
data[KEY_HISTORY_TREE] = htree.to_dict()
|
||||||
save_json(file_path, data)
|
save_json(file_path, data)
|
||||||
|
st.session_state.ui_reset_token += 1
|
||||||
st.toast(f"Updated {len(target_indices)} sequences", icon="✅")
|
st.toast(f"Updated {len(target_indices)} sequences", icon="✅")
|
||||||
st.rerun()
|
st.rerun()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user