From e10ff16fa1f04ce7d11a389b0ff28e54ac7deb53 Mon Sep 17 00:00:00 2001 From: Lennard Fonteijn Date: Tue, 14 Mar 2023 12:23:44 +0100 Subject: [PATCH] Fixed issue where filtering allowed element types with a NotificationHandler causes issues with Block Grid areas --- .../blockgrid/umbBlockGridPropertyEditor.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js index 4ebac72928..9717e5537a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js @@ -708,7 +708,7 @@ } else if(allowance.elementTypeKey) { const blockType = vm.availableBlockTypes.find(x => x.blockConfigModel.contentElementTypeKey === allowance.elementTypeKey); - if(allowedElementTypes.indexOf(blockType) === -1) { + if(blockType && allowedElementTypes.indexOf(blockType) === -1) { allowedElementTypes.push(blockType); } }