diff --git a/public/app/features/dashboard/state/actions.ts b/public/app/features/dashboard/state/actions.ts index ff2f03de9d0..ff718ddf6a9 100644 --- a/public/app/features/dashboard/state/actions.ts +++ b/public/app/features/dashboard/state/actions.ts @@ -2,6 +2,7 @@ import { TimeZone } from '@grafana/data'; import { getBackendSrv } from '@grafana/runtime'; import { notifyApp } from 'app/core/actions'; import { createSuccessNotification } from 'app/core/copy/appNotification'; +import { dashboardWatcher } from 'app/features/live/dashboard/dashboardWatcher'; import { updateTimeZoneForSession, updateWeekStartForSession } from 'app/features/profile/state/reducers'; import { DashboardAcl, DashboardAclUpdateDTO, NewDashboardAclItem, PermissionLevel, ThunkResult } from 'app/types'; @@ -124,6 +125,7 @@ export const cleanUpDashboardAndVariables = (): ThunkResult => (dispatch, getTimeSrv().stopAutoRefresh(); dispatch(cleanUpDashboard()); + dashboardWatcher.leave(); }; export const updateTimeZoneDashboard =