mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
influxdb: influxql: fix retention-policy handling (#36022)
This commit is contained in:
parent
31aaf94e91
commit
ec9dbdd93c
@ -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…
Reference in New Issue
Block a user