From e346868bf1a00f097a41739c768aee75912aaaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 30 Aug 2024 08:40:39 +0200 Subject: [PATCH] fix test --- .../property-editor-ui-block-grid.element.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.element.ts index 57c11096d4..0c597e5ded 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.element.ts @@ -132,7 +132,9 @@ export class UmbPropertyEditorUIBlockGridElement this.removeFormControlElement(this.#currentEntriesElement as any); } this.#currentEntriesElement = element; - this.addFormControlElement(element as any); + if (element) { + this.addFormControlElement(element as any); + } } override render() {