Prometheus: Fix populating label names in sum operation on query builder (#107376)

fix populating label names
pull/107008/head^2
ismail simsek 3 weeks ago committed by GitHub
parent 4a272fb61b
commit bacad12b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/grafana-prometheus/src/querybuilder/components/LabelParamEditor.tsx

@ -71,9 +71,9 @@ async function loadGroupByLabels(
}
const expr = modeller.renderLabels(labels);
const result = await datasource.languageProvider.queryLabelKeys(timeRange, expr);
const result: string[] = await datasource.languageProvider.queryLabelKeys(timeRange, expr);
return Object.keys(result).map((x) => ({
return result.map((x) => ({
label: x,
value: x,
}));

Loading…
Cancel
Save