1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Further fix for dynamic variable deletion across different queries

This commit is contained in:
Rory Powell 2021-12-21 11:26:45 -05:00
parent ded3c2247b
commit e96467a7cd

View file

@ -208,7 +208,12 @@
}
})
}
return variables
let existing = datasource?.config?.dynamicVariables || []
// remove existing query variables (for changes and deletions)
existing = existing.filter(variable => variable.queryId !== queryId)
// re-add the new query variables
return [...existing, ...variables]
}
const shouldShowVariables = (dynamicVariables, variablesReadOnly) => {