Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: duplicate widget ID error for input data "full load hours" #74

Closed
joAschauer opened this issue Nov 8, 2023 · 1 comment · Fixed by #76
Closed

Bug: duplicate widget ID error for input data "full load hours" #74

joAschauer opened this issue Nov 8, 2023 · 1 comment · Fixed by #76
Assignees

Comments

@joAschauer
Copy link
Collaborator

Reproduce with:

  • toggle "Edit Input data"
  • got to tab "Input Data"
  • select data type "full load hours"

Error Message:

DuplicateWidgetID: There are multiple widgets with the same key='edit_input_data_['full load hours']'.

To fix this, please make sure that the key argument is unique for each widget you create.
Traceback:

File "C:\Users\j.aschauer\nobackup\ptx-boa\ptxboa_streamlit.py", line 72, in <module>
    pf.content_deep_dive_countries(api, res_costs, settings)
File "C:\Users\j.aschauer\nobackup\ptx-boa\app\ptxboa_functions.py", line 637, in content_deep_dive_countries
    df = display_and_edit_data_table(
File "C:\Users\j.aschauer\nobackup\ptx-boa\app\ptxboa_functions.py", line 774, in display_and_edit_data_table
    st.data_editor(
@joAschauer joAschauer assigned joAschauer and markushal and unassigned joAschauer Nov 8, 2023
markushal added a commit that referenced this issue Nov 8, 2023
@joAschauer joAschauer linked a pull request Nov 9, 2023 that will close this issue
markushal added a commit that referenced this issue Nov 10, 2023
…r-for-input-data-full-load-hours

fix: duplicate widget ID error (#74)
@joAschauer
Copy link
Collaborator Author

closed in #76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants