From f05b3db4c507cc4587120d9062473ade85495072 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Thu, 8 Jan 2026 16:05:37 +0100 Subject: [PATCH 1/2] fix: filtering of tag values --- ui/src/tag/suggest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/tag/suggest.ts b/ui/src/tag/suggest.ts index c1992dff..9a41d74c 100644 --- a/ui/src/tag/suggest.ts +++ b/ui/src/tag/suggest.ts @@ -24,9 +24,9 @@ export const useSuggest = ( }); const usedKeys = usedTags.map((t) => t.tag.key); - const usedValues = usedTags.map((t) => t.value); if (exactMatch && tagValue !== undefined && !skipValue && (allowDuplicateKeys || usedKeys.indexOf(exactMatch.key) === -1)) { + const usedValues = usedTags.filter((t) => t.tag.key === tagKey).map((t) => t.value); return suggestTagValue(exactMatch, tagValue, valueResult, usedValues, createTags); } else { return suggestTag(exactMatch, tagResult, tagKey, usedKeys, allowDuplicateKeys, createTags); From b7f261903142333b70d5b9e5cb93c77df77dbbde Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Thu, 8 Jan 2026 20:12:04 +0100 Subject: [PATCH 2/2] fix: always invalidate suggest result --- ui/src/tag/suggest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/tag/suggest.ts b/ui/src/tag/suggest.ts index 9a41d74c..040fcbce 100644 --- a/ui/src/tag/suggest.ts +++ b/ui/src/tag/suggest.ts @@ -21,6 +21,7 @@ export const useSuggest = ( const valueResult = useQuery(gqlTags.SuggestTagValue, { variables: {tag: tagKey, query: tagValue}, skip: exactMatch === undefined || skipValue, + fetchPolicy: 'no-cache', }); const usedKeys = usedTags.map((t) => t.tag.key);