Merge pull request #4606 from influxdata/hotfix-handle-map-template-variables-correctly
Match by key when tempvar is a map typepull/4607/head
commit
04e89f7a6b
|
@ -697,7 +697,14 @@ export const getDashboardWithTemplatesAsync = (
|
|||
_.each(selections, (val, key) => {
|
||||
const result = _.some(
|
||||
templates,
|
||||
temp => temp.tempVar === key && _.some(temp.values, v => v.value === val)
|
||||
temp =>
|
||||
temp.tempVar === key &&
|
||||
_.some(temp.values, v => {
|
||||
if (v.key) {
|
||||
return v.key === val
|
||||
}
|
||||
return v.value === val
|
||||
})
|
||||
)
|
||||
|
||||
if (!result) {
|
||||
|
|
Loading…
Reference in New Issue