[v10.1.x] InfluxDB: Fix multiple tag selection (#74622)

InfluxDB: Fix multiple tag selection (#74205)

Return all tag keys

(cherry picked from commit 9c50296a07)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
This commit is contained in:
grafana-delivery-bot[bot]
2023-09-08 21:12:51 +02:00
committed by GitHub
co-authored by ismail simsek
parent 65e1e9d67f
commit 246b414c58
@@ -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(() => {