[v10.0.x] InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72641)

InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72564)

Don't fetch tag keys before fetching policies

(cherry picked from commit 31f4eddbb6)
This commit is contained in:
ismail simsek
2023-07-31 21:01:04 +02:00
committed by GitHub
parent 1e1b4558a4
commit d858c59c85
@@ -161,12 +161,7 @@ export const Editor = (props: Props): JSX.Element => {
<FromSection
policy={policy ?? retentionPolicies[0]}
measurement={measurement}
getPolicyOptions={() =>
withTemplateVariableOptions(
allTagKeys.then((keys) => getAllPolicies(datasource)),
wrapPure
)
}
getPolicyOptions={() => withTemplateVariableOptions(getAllPolicies(datasource), wrapPure)}
getMeasurementOptions={(filter) =>
withTemplateVariableOptions(
allTagKeys.then((keys) =>