ShareExternally: Fix refresh when time picker is hidden (#95206)
Fix refresh when time picker is hidden
This commit is contained in:
@@ -59,12 +59,9 @@ export function PublicDashboardScenePage({ route }: Props) {
|
||||
return <PublicDashboardNotAvailable />;
|
||||
}
|
||||
|
||||
// if no time picker render without url sync
|
||||
if (dashboard.state.controls?.state.hideTimeControls) {
|
||||
return <PublicDashboardSceneRenderer model={dashboard} />;
|
||||
}
|
||||
|
||||
return (
|
||||
// url sync is needed with or without time picker enabled to make refresh work
|
||||
// the backend sanitizes the request payload
|
||||
<UrlSyncContextProvider scene={dashboard}>
|
||||
<PublicDashboardSceneRenderer model={dashboard} />
|
||||
</UrlSyncContextProvider>
|
||||
|
||||
Reference in New Issue
Block a user