Variables: adds missing feature toggle in DashboardModel (#22868)

This commit is contained in:
Hugo Häggmark 2020-03-18 15:55:12 +01:00 committed by GitHub
parent 229f135e5c
commit 52242ddf76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {