diff --git a/ui/src/dashboards/actions/index.ts b/ui/src/dashboards/actions/index.ts index 3e6c0d062..09b859494 100644 --- a/ui/src/dashboards/actions/index.ts +++ b/ui/src/dashboards/actions/index.ts @@ -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) {