From ec9dbdd93c5affa31f058fc2559892576d640a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Wed, 23 Jun 2021 09:53:53 +0200 Subject: [PATCH] influxdb: influxql: fix retention-policy handling (#36022) --- .../influxdb/components/VisualInfluxQLEditor/FromSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/FromSection.tsx b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/FromSection.tsx index 51237c97994..8ad227edf63 100644 --- a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/FromSection.tsx +++ b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/FromSection.tsx @@ -35,7 +35,7 @@ export const FromSection = ({ // if `default` does not exist in the list of policies, we add it const allPoliciesWithDefault = allPolicies.some((p) => p === 'default') ? allPolicies - : [DEFAULT_POLICY, allPolicies]; + : [DEFAULT_POLICY, ...allPolicies]; return allPoliciesWithDefault.map(toSelectableValue); };