From caeebc0fb0e34c8e42415eb160be52d2c5334f34 Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Wed, 30 Oct 2024 14:45:12 +0100 Subject: [PATCH] fix altair not showing on initial open of the dialog --- dont_fret/web/bursts/page.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dont_fret/web/bursts/page.py b/dont_fret/web/bursts/page.py index 8e679da..e74ccbf 100644 --- a/dont_fret/web/bursts/page.py +++ b/dont_fret/web/bursts/page.py @@ -17,12 +17,15 @@ def BurstPage(): for filter_item in state.filters.items: FilterListItem(filter_item) - # if open_filter_dialog: with solara.v.Dialog( v_model=open_filter_dialog.value, max_width=1200, on_v_model=open_filter_dialog.set ): with solara.Card(style={"width": "1190px"}): - FilterEditDialog() + # only place the dialog if its open otherwise altair chart won't show + if open_filter_dialog.value: + FilterEditDialog() + else: + pass with solara.GridFixed(columns=2): BurstFigure(