only unsubscribe when disabling the UI
This commit is contained in:
1 parent
a82d4ace67
commit
be39da3af1
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user