mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: Exclude adhoc variables from the impacted by logic (#41717)
This commit is contained in:
@@ -47,6 +47,7 @@ import {
|
||||
hasLegacyVariableSupport,
|
||||
hasOptions,
|
||||
hasStandardVariableSupport,
|
||||
isAdHoc,
|
||||
isMulti,
|
||||
isQuery,
|
||||
} from '../guard';
|
||||
@@ -517,7 +518,9 @@ export const variableUpdated = (
|
||||
const variables = getVariables(state);
|
||||
const g = createGraph(variables);
|
||||
const panels = state.dashboard?.getModel()?.panels ?? [];
|
||||
const affectedPanelIds = getAllAffectedPanelIdsForVariableChange(variableInState.id, variables, panels);
|
||||
const affectedPanelIds = isAdHoc(variableInState)
|
||||
? undefined // for adhoc variables we don't know which panels that will be impacted
|
||||
: getAllAffectedPanelIdsForVariableChange(variableInState.id, variables, panels);
|
||||
|
||||
const node = g.getNode(variableInState.name);
|
||||
let promises: Array<Promise<any>> = [];
|
||||
|
||||
Reference in New Issue
Block a user