Fix missing tag suggestions when no culture available. (#19694)

Allow undefined culture when obtaining tag matches

Co-authored-by: Ben White <b.white@rocburn.com>
This commit is contained in:
Ben White
2025-07-23 11:25:00 +01:00
committed by GitHub
parent 73c995c8ec
commit 0507d1a0c8

View File

@@ -72,8 +72,8 @@ export class UmbTagsInputElement extends UUIFormControlMixin(UmbLitElement, '')
}
async #getExistingTags(query: string) {
if (!this.group || this.culture === undefined || !query) return;
const { data } = await this.#repository.queryTags(this.group, this.culture, query);
if (!this.group || !query) return;
const { data } = await this.#repository.queryTags(this.group, this.culture ?? null, query);
if (!data) return;
this._matches = data.items;
}