mabuseif commited on
Commit
aac82dc
·
verified ·
1 Parent(s): 4740b99

Update app/materials_library.py

Browse files
Files changed (1) hide show
  1. 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["category", MATERIAL_CATEGORIES[0]))
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,