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

Don't fetch tag keys before fetching policies
This commit is contained in:
ismail simsek
2023-07-31 21:38:46 +03:00
committed by GitHub
parent adc3735122
commit 31f4eddbb6

View File

@@ -133,12 +133,7 @@ export const VisualInfluxQLEditor = (props: Props): JSX.Element => {
<FromSection
policy={policy}
measurement={measurement}
getPolicyOptions={() =>
withTemplateVariableOptions(
allTagKeys.then(() => getAllPolicies(datasource)),
wrapPure
)
}
getPolicyOptions={() => withTemplateVariableOptions(getAllPolicies(datasource), wrapPure)}
getMeasurementOptions={(filter) =>
withTemplateVariableOptions(
allTagKeys.then((keys) =>