mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
only unsubscribe when disabling the UI
This commit is contained in:
parent
a82d4ace67
commit
be39da3af1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user