From be39da3af1609a98da5c627a8c4e19b9a48aa64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=CC=81bor=20Farkas?= Date: Mon, 5 Sep 2022 14:40:31 +0200 Subject: [PATCH] only unsubscribe when disabling the UI --- public/app/features/explore/state/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {