Hi guys, getting the following error and not sure why:
A nonexistent object was used in an Output
of a Dash callback. The id of this object is sidebar_container
and the property is `children.
Currently building a multipage app with 4 pages. The last page, contains a callback that contains 'sidebar_container:
callback(
Output("sidebar_container", "children"),
Output("status_main_section", "children"),
Output('summary_map_unit_clicked_value', 'clear_data'),
Output('status_unit_clicked', 'data'),
Input({'type': 'list-group-item', 'index': ALL},'n_clicks'),
Input("jobsite-dropdown", "value"),
State('summary_map_unit_clicked_value', 'data')
# State("list-group", "children"),
)
def refresh(n_clicks_list, job_site, summary_map_unit_clicked):
data_processor = get_data_processor()
....
return _build_sidebar(job_site, unitname), _build_main_section(job_site, unitname), True, unitname
The layout for this page is
layout = html.Div(
[ dbc.Row(
[
dbc.Col(html.Div(id="sidebar_container"), width=3),
dbc.Col(html.Div(id="status_main_section"), width=9),
],className="mt-3",
)
],
)
This last page doesnt throw this error, but all other pages do. Not sure why the other pages care about this sidebar_container. All pages share a job-site dropdown which gets built dynamically, and i can only presume that this is triggering the callback on the last page even if im not on it.
Any ideas?