diff --git a/public/app/features/explore/state/query.ts b/public/app/features/explore/state/query.ts index 10c42e8b4d9..ad0190cab91 100644 --- a/public/app/features/explore/state/query.ts +++ b/public/app/features/explore/state/query.ts @@ -740,7 +740,7 @@ export const queryReducer = (state: ExploreItemState, action: AnyAction): Explor if (setLogsVolumeEnabledAction.match(action)) { const { enabled } = action.payload; - if (state.logsVolumeDataSubscription) { + if (!enabled && state.logsVolumeDataSubscription) { state.logsVolumeDataSubscription.unsubscribe(); } return {