From d58b447fa0aebeb5016ce028a13120dbf616618d Mon Sep 17 00:00:00 2001 From: sylenien Date: Mon, 11 Jul 2022 12:49:28 +0200 Subject: [PATCH] fix(ui): fix dashbaord selector --- .../Dashboard/components/DashboardView/DashboardView.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx index d376e97f0..108d961a5 100644 --- a/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx +++ b/frontend/app/components/Dashboard/components/DashboardView/DashboardView.tsx @@ -65,6 +65,9 @@ function DashboardView(props: Props) { trimQuery(); } }, []); + useEffect(() => { + dashboardStore.selectDefaultDashboard(); + }, [siteId]) const onAddWidgets = () => { dashboardStore.initDashboard(dashboard);