Spaces:
Sleeping
Sleeping
Update app/materials_library.py
Browse files- app/materials_library.py +3 -3
app/materials_library.py
CHANGED
@@ -890,9 +890,9 @@ def display_fenestrations_tab(material_library: MaterialLibrary):
|
|
890 |
|
891 |
if st.form_submit_button("Save Fenestration"):
|
892 |
action_id = str(uuid.uuid4())
|
893 |
-
if st.session_state.fenestration_action.get("
|
894 |
-
st.session_state.fenestration_action = {"action": "save", "id": action_id
|
895 |
-
st.session_state.
|
896 |
"name": name,
|
897 |
"category": category,
|
898 |
"shgc": shgc,
|
|
|
890 |
|
891 |
if st.form_submit_button("Save Fenestration"):
|
892 |
action_id = str(uuid.uuid4())
|
893 |
+
if st.session_state.fenestration_action.get("id") != action_id:
|
894 |
+
st.session_state.fenestration_action = {"action": "save", "id": action_id}
|
895 |
+
st.session_state.fenestration_form_state = {
|
896 |
"name": name,
|
897 |
"category": category,
|
898 |
"shgc": shgc,
|