emvecchi commited on
Commit
fb0c588
1 Parent(s): 6f67911

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -221,9 +221,7 @@ elif st.session_state.current_index < len(st.session_state.data):
221
  if field.name not in st.session_state.data.columns:
222
  # Field doesn't exist in input dataframe, add it with a default value
223
  st.session_state.data_inputs[field.name] = None
224
- show_field(field, index)
225
- else:
226
- show_field(field, index)
227
 
228
  submitted = st.form_submit_button("Submit")
229
  if submitted:
 
221
  if field.name not in st.session_state.data.columns:
222
  # Field doesn't exist in input dataframe, add it with a default value
223
  st.session_state.data_inputs[field.name] = None
224
+ show_field(field, index)
 
 
225
 
226
  submitted = st.form_submit_button("Submit")
227
  if submitted: