Skip to content

Commit

Permalink
Avoid using non-existant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Apr 29, 2024
1 parent e6cb822 commit 5a9add8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def _update_tornado_pages(
if page_selected == "torn_bulk_inplace"
else [selections["Response"]]
)
realplot = None
for response in responses:
if not (response == "BULK" and page_selected == "torn_bulk_inplace"):
if selections["Reference"] not in selections["Sensitivities"]:
Expand Down Expand Up @@ -132,7 +133,7 @@ def _update_tornado_pages(
height="39vh",
table_id={"table_id": f"{page_selected}-torntable"},
)
elif selections["bottom_viz"] == "realplot" and figures:
elif realplot and selections["bottom_viz"] == "realplot" and figures:
bottom_display = [
wcc.Graph(
config={"displayModeBar": False},
Expand Down

0 comments on commit 5a9add8

Please sign in to comment.