From 1dcc8d21fc1136f9d9900d58dadd2e043baebba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 8 Jun 2023 22:05:31 +0200 Subject: [PATCH] fix issue with multiple text string --- .../input-multiple-text-string.element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editors/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editors/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.ts index f9f9534836..ff1a20b94a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editors/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editors/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.ts @@ -104,8 +104,8 @@ export class UmbInputMultipleTextStringElement extends FormControlMixin(UmbLitEl } public set items(items: MultipleTextStringValue) { // TODO: when we have a way to overwrite the missing value validator we can remove this - this.value = items.length > 0 ? 'some value' : ''; - this._items = items || []; + this.value = items?.length > 0 ? 'some value' : ''; + this._items = items ?? []; } // TODO: Some inputs might not have a value that is either FormDataEntryValue or FormData.