Fixed issue where filtering allowed element types with a NotificationHandler causes issues with Block Grid areas
This commit is contained in:
committed by
Michael Latouche
parent
f6ebcdcfb6
commit
e10ff16fa1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user