mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
ShareExternally: Fix refresh when time picker is hidden (#95206)
Fix refresh when time picker is hidden
This commit is contained in:
parent
75a28bc367
commit
60915e7fe6
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user