From 60915e7fe669a6420d8f46eb76e58d484c6ebfa0 Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Tue, 22 Oct 2024 17:03:04 -0300 Subject: [PATCH] ShareExternally: Fix refresh when time picker is hidden (#95206) Fix refresh when time picker is hidden --- .../dashboard-scene/pages/PublicDashboardScenePage.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx b/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx index 2b2895124c9..6c21c6845b3 100644 --- a/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx +++ b/public/app/features/dashboard-scene/pages/PublicDashboardScenePage.tsx @@ -59,12 +59,9 @@ 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