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

This commit is contained in:
Gábor Farkas 2021-06-23 09:53:53 +02:00 committed by GitHub
parent 31aaf94e91
commit ec9dbdd93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};