Spaces:
Sleeping
Sleeping
Update app/materials_library.py
Browse files- app/materials_library.py +1 -1
app/materials_library.py
CHANGED
@@ -894,7 +894,7 @@ def display_material_editor():
|
|
894 |
col1, col2 = st.columns(2)
|
895 |
|
896 |
with col1:
|
897 |
-
category_index = MATERIAL_CATEGORIES.index(form_state.get("category", editor_state
|
898 |
category = st.selectbox(
|
899 |
"Category",
|
900 |
MATERIAL_CATEGORIES,
|
|
|
894 |
col1, col2 = st.columns(2)
|
895 |
|
896 |
with col1:
|
897 |
+
category_index = MATERIAL_CATEGORIES.index(form_state.get("category", editor_state.get("category", MATERIAL_CATEGORIES[0])))
|
898 |
category = st.selectbox(
|
899 |
"Category",
|
900 |
MATERIAL_CATEGORIES,
|