influxdb: influxql: fix retention-policy handling (#36022)

pull/36060/head
Gábor Farkas 4 years ago committed by GitHub
parent 31aaf94e91
commit ec9dbdd93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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);
};

Loading…
Cancel
Save