Skip to content

Commit 0507d1a

Browse files
BenWhite27Ben White
andauthored
Fix missing tag suggestions when no culture available. (#19694)
Allow undefined culture when obtaining tag matches Co-authored-by: Ben White <[email protected]>
1 parent 73c995c commit 0507d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/tags/components/tags-input/tags-input.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export class UmbTagsInputElement extends UUIFormControlMixin(UmbLitElement, '')
7272
}
7373

7474
async #getExistingTags(query: string) {
75-
if (!this.group || this.culture === undefined || !query) return;
76-
const { data } = await this.#repository.queryTags(this.group, this.culture, query);
75+
if (!this.group || !query) return;
76+
const { data } = await this.#repository.queryTags(this.group, this.culture ?? null, query);
7777
if (!data) return;
7878
this._matches = data.items;
7979
}

0 commit comments

Comments
 (0)