Kikulika commited on
Commit
840bb6f
·
verified ·
1 Parent(s): 83c531c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -682,7 +682,7 @@ with st.sidebar:
682
  # Show success message
683
  st.success("Task added successfully!")
684
  # Clear form after adding
685
- st.experimental_rerun()
686
  except Exception as e:
687
  st.error(f"Error adding task: {str(e)}")
688
  else:
@@ -699,7 +699,7 @@ for idx, task in st.session_state.tasks.iterrows():
699
  # Create a hidden button that will be triggered by JavaScript
700
  if st.button("", key=button_key, help="Hidden button for status update", disabled=task['Status'] == status):
701
  update_task(idx, 'Status', status)
702
- st.experimental_rerun()
703
 
704
  # Add JavaScript for modal and status update functionality
705
  st.markdown("""
 
682
  # Show success message
683
  st.success("Task added successfully!")
684
  # Clear form after adding
685
+ st.rerun()
686
  except Exception as e:
687
  st.error(f"Error adding task: {str(e)}")
688
  else:
 
699
  # Create a hidden button that will be triggered by JavaScript
700
  if st.button("", key=button_key, help="Hidden button for status update", disabled=task['Status'] == status):
701
  update_task(idx, 'Status', status)
702
+ st.rerun()
703
 
704
  # Add JavaScript for modal and status update functionality
705
  st.markdown("""