From e9d259248110102ef0f2986f819e600dabd6f42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 27 Feb 2021 18:03:31 +0100 Subject: [PATCH] Variables: Fixes error with: cannot read property length of undefined (#31458) * Variables: Fixes error with: cannot read property length of undefined * A different fix --- public/app/features/variables/query/operators.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/features/variables/query/operators.ts b/public/app/features/variables/query/operators.ts index 5aa6e75661a..5e31cd3b83d 100644 --- a/public/app/features/variables/query/operators.ts +++ b/public/app/features/variables/query/operators.ts @@ -9,6 +9,7 @@ import { DataSourceApi, FieldType, getFieldDisplayName, isDataFrame, MetricFindV import { updateVariableOptions, updateVariableTags } from './reducer'; import { getTimeSrv, TimeSrv } from '../../dashboard/services/TimeSrv'; import { getLegacyQueryOptions, getTemplatedRegex } from '../utils'; +import { getProcessedDataFrames } from 'app/features/query/state/runRequest'; export function toMetricFindValues(): OperatorFunction { return (source) => @@ -23,6 +24,7 @@ export function toMetricFindValues(): OperatorFunction