correct ? operator

This commit is contained in:
Niels Lyngsø
2024-01-15 13:07:26 +01:00
parent 6017275cba
commit 8b8647a96d

View File

@@ -38,7 +38,7 @@ export class UmbPropertyEditorUIBlockListElement extends UmbLitElement implement
return this._value;
}
public set value(value: UmbBlockListValueModel | undefined) {
const buildUpValue: Partial<UmbBlockListValueModel> = { ...value } ?? {};
const buildUpValue: Partial<UmbBlockListValueModel> = value ? { ...value } : {};
buildUpValue.layout ??= {};
buildUpValue.contentData ??= [];
buildUpValue.settingsData ??= [];