Skip to content

Commit b4ab235

Browse files
committed
fix: groupBy manual applyMode
1 parent eb2f87c commit b4ab235

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/scenes/src/variables/groupby/GroupByVariable.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,13 @@ export class GroupByVariable extends MultiValueVariable<GroupByVariableState> {
144144
noValueOnClear: true,
145145
});
146146

147-
this.addActivationHandler(() => {
148-
allActiveGroupByVariables.add(this);
147+
if (this.state.applyMode === 'auto') {
148+
this.addActivationHandler(() => {
149+
allActiveGroupByVariables.add(this);
149150

150-
return () => allActiveGroupByVariables.delete(this);
151-
});
151+
return () => allActiveGroupByVariables.delete(this);
152+
});
153+
}
152154
}
153155

154156
/**

0 commit comments

Comments
 (0)