Merge pull request #592 from openreplay/fix-dashboards

fix(ui): fix dashbaord selector
This commit is contained in:
Shekar Siri 2022-07-11 17:30:59 +02:00 committed by GitHub
commit 24fffbb9c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,9 @@ function DashboardView(props: Props) {
trimQuery();
}
}, []);
useEffect(() => {
dashboardStore.selectDefaultDashboard();
}, [siteId])
const onAddWidgets = () => {
dashboardStore.initDashboard(dashboard);