James McCool
commited on
Commit
·
afe1ae3
1
Parent(s):
16aefb8
Refactor reset button functionality in app.py
Browse files- Replaced the form submit button with a standard button for resetting filters, simplifying the user interaction for clearing selections.
- Enhanced the clarity of the reset action by renaming the button to "Reset filters," improving user understanding of its purpose.
app.py
CHANGED
@@ -235,8 +235,7 @@ with tab2:
|
|
235 |
if st.button('Clear data', key='reset3'):
|
236 |
st.session_state.clear()
|
237 |
with reset_col:
|
238 |
-
|
239 |
-
if reset:
|
240 |
entry_names = []
|
241 |
low_entries_var = 1
|
242 |
high_entries_var = 150
|
|
|
235 |
if st.button('Clear data', key='reset3'):
|
236 |
st.session_state.clear()
|
237 |
with reset_col:
|
238 |
+
if st.button("Reset filters"):
|
|
|
239 |
entry_names = []
|
240 |
low_entries_var = 1
|
241 |
high_entries_var = 150
|