From 7fe83a0f6ad89a14b1eb324f463c8475c926e537 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 18:20:07 -0800 Subject: [PATCH] fix: Update st.rerun() to st.experimental_set_query_params(rerun=True) --- src/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 1d61fc3..759cb5f 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -244,7 +244,7 @@ def trading_journal_page(): add_trade(trade) st.success("Trade added successfully!") - st.rerun() + st.experimental_set_query_params(rerun=True) except Exception as e: st.error(f"Error adding trade: {str(e)}")