From 52242ddf765b7ee543a9084ee9b792a778827e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Wed, 18 Mar 2020 15:55:12 +0100 Subject: [PATCH] Variables: adds missing feature toggle in DashboardModel (#22868) --- public/app/features/dashboard/state/DashboardModel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/state/DashboardModel.ts b/public/app/features/dashboard/state/DashboardModel.ts index 40e25f84467..4f09d20a96d 100644 --- a/public/app/features/dashboard/state/DashboardModel.ts +++ b/public/app/features/dashboard/state/DashboardModel.ts @@ -278,7 +278,9 @@ export class DashboardModel { timeRangeUpdated(timeRange: TimeRange) { this.events.emit(CoreEvents.timeRangeUpdated, timeRange); - dispatch(onTimeRangeUpdated(timeRange)); + if (getConfig().featureToggles.newVariables) { + dispatch(onTimeRangeUpdated(timeRange)); + } } startRefresh() {