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

This commit is contained in:
Gábor Farkas authored and GitHub committed 2021-06-23 09:53:53 +02:00
1 parent 31aaf94e91
commit ec9dbdd93c
1 file changed
+1 -1
@@ -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);
};