From 246b414c589cb2752a148cb8a70f71002e4201f7 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Fri, 8 Sep 2023 21:12:51 +0200 Subject: [PATCH] [v10.1.x] InfluxDB: Fix multiple tag selection (#74622) InfluxDB: Fix multiple tag selection (#74205) Return all tag keys (cherry picked from commit 9c50296a07d01b00a59f71b7023b67567c3c16a4) Co-authored-by: ismail simsek --- .../editor/query/influxql/visual/VisualInfluxQLEditor.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx index 9b6b79fb0cc..3f4e4256c28 100644 --- a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx +++ b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx @@ -82,11 +82,9 @@ export const VisualInfluxQLEditor = (props: Props): JSX.Element => { // is used in both memoized and un-memoized parts, so we have no choice const getTagKeys = useMemo( () => async () => { - const selectedTagKeys = new Set(query.tags?.map((tag) => tag.key)); - - return [...(await allTagKeys)].filter((tagKey) => !selectedTagKeys.has(tagKey)); + return [...(await allTagKeys)]; }, - [query.tags, allTagKeys] + [allTagKeys] ); const groupByList = useMemo(() => {