diff --git a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx index 27477576254..93b476106be 100644 --- a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx +++ b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx @@ -161,12 +161,7 @@ export const Editor = (props: Props): JSX.Element => { - withTemplateVariableOptions( - allTagKeys.then((keys) => getAllPolicies(datasource)), - wrapPure - ) - } + getPolicyOptions={() => withTemplateVariableOptions(getAllPolicies(datasource), wrapPure)} getMeasurementOptions={(filter) => withTemplateVariableOptions( allTagKeys.then((keys) =>