I am developing an app where I need to generate widgets dynamically from a list, list has 4 items but streamlit is generating five widgets.
- I am running the app locally
- Streamlit version 1.31, Python 3.10.5
with manage_connection_tab:
col1, col2, col3 = st.columns(3)
for i in range(4):
c_name = col1.text('name')
c_edit_button = col2.button('Edit', key=f"edit{i}")
c_delete_button = col3.button('Delete', key=f"delete{i}")