Bertonlome commited on
Commit
4d9b367
·
1 Parent(s): cfad629

Fix graph update: use Input instead of State for table data

Browse files
Files changed (1) hide show
  1. python_dash_ia.py +2 -2
python_dash_ia.py CHANGED
@@ -712,12 +712,12 @@ app.layout = html.Div([
712
  Output("most-reliable-bar-chart", "figure"),
713
  Input("procedure-dropdown", "value"),
714
  Input("highlight-selector", "value"),
715
- State("responsibility-table", "data")
716
  )
717
  def update_graph_and_bar(procedure, highlight_track, data):
718
  df = pd.DataFrame(data)
719
  if df.empty:
720
- return go.Figure(), go.Figure()
721
  if highlight_track == "none":
722
  highlight_track = None
723
 
 
712
  Output("most-reliable-bar-chart", "figure"),
713
  Input("procedure-dropdown", "value"),
714
  Input("highlight-selector", "value"),
715
+ Input("responsibility-table", "data")
716
  )
717
  def update_graph_and_bar(procedure, highlight_track, data):
718
  df = pd.DataFrame(data)
719
  if df.empty:
720
+ return go.Figure(), go.Figure(), go.Figure()
721
  if highlight_track == "none":
722
  highlight_track = None
723