From 60aa62d3deeff8a55381f11e9996a2ec499060b7 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Thu, 1 Feb 2024 14:48:07 +0100 Subject: [PATCH] use unique --- .../views/workspace-view-dictionary-editor.element.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/workspace-view-dictionary-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/workspace-view-dictionary-editor.element.ts index f2047b365f..aaedb70bfc 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/workspace-view-dictionary-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/workspace-view-dictionary-editor.element.ts @@ -38,14 +38,14 @@ export class UmbWorkspaceViewDictionaryEditorElement extends UmbLitElement { } #renderTranslation(language: UmbLanguageDetailModel) { - if (!language.isoCode) return; + if (!language.unique) return; - const translation = this._dictionary?.translations?.find((x) => x.isoCode === language.isoCode); + const translation = this._dictionary?.translations?.find((x) => x.isoCode === language.unique); - return html` + return html`