mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: make sure object type queries are also checked for vtemplate variables
This commit is contained in:
parent
aa65796ee1
commit
7fc8ed942f
@ -1,3 +1,4 @@
|
||||
import _ from 'lodash';
|
||||
import { assignModelProperties } from 'app/core/utils/model_utils';
|
||||
|
||||
/*
|
||||
@ -28,6 +29,7 @@ export { assignModelProperties };
|
||||
|
||||
export function containsVariable(...args: any[]) {
|
||||
const variableName = args[args.length - 1];
|
||||
args[0] = _.isString(args[0]) ? args[0] : Object['values'](args[0]).join(' ');
|
||||
const variableString = args.slice(0, -1).join(' ');
|
||||
const matches = variableString.match(variableRegex);
|
||||
const isMatchingVariable =
|
||||
|
Loading…
Reference in New Issue
Block a user