diff --git a/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx b/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx index 6c21c6845b3..c55d4bbcce9 100644 --- a/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx +++ b/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx @@ -59,9 +59,12 @@ export function PublicDashboardScenePage({ route }: Props) { return ; } + // if no time picker render without url sync + if (dashboard.state.controls?.state.hideTimeControls) { + return ; + } + return ( - // url sync is needed with or without time picker enabled to make refresh work - // the backend sanitizes the request payload @@ -75,6 +78,10 @@ function PublicDashboardSceneRenderer({ model }: SceneComponentProps { + return refreshPicker.activate(); + }, [refreshPicker]); + useEffect(() => { setIsActive(true); return model.activate();