3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00

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

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) =>