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

(cherry picked from commit ec9dbdd93c)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-23 10:17:08 +02:00
committed by GitHub
co-authored by Gábor Farkas
parent 0f9168953b
commit 5f26262655
@@ -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);
};