From d46acaf1dd7b3d5bda91118d6e2d7b2ca74ece56 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Sun, 28 Feb 2021 07:11:16 +0000 Subject: [PATCH] Variables: Fixes error with: cannot read property length of undefined (#31458) (#31527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Variables: Fixes error with: cannot read property length of undefined * A different fix (cherry picked from commit e9d259248110102ef0f2986f819e600dabd6f42d) Co-authored-by: Torkel Ödegaard --- 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