InfluxDB: Fix multiple tag selection (#74205)

Return all tag keys
This commit is contained in:
ismail simsek 2023-09-08 21:57:11 +03:00 committed by GitHub
parent 3107459e57
commit 9c50296a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 // is used in both memoized and un-memoized parts, so we have no choice
const getTagKeys = useMemo( const getTagKeys = useMemo(
() => async () => { () => async () => {
const selectedTagKeys = new Set(query.tags?.map((tag) => tag.key)); return [...(await allTagKeys)];
return [...(await allTagKeys)].filter((tagKey) => !selectedTagKeys.has(tagKey));
}, },
[query.tags, allTagKeys] [allTagKeys]
); );
const groupByList = useMemo(() => { const groupByList = useMemo(() => {