Skip to content

Commit

Permalink
Fixed issue where filtering allowed element types with a Notification…
Browse files Browse the repository at this point in the history
…Handler causes issues with Block Grid areas
  • Loading branch information
LennardF1989 authored and mikecp committed Mar 16, 2023
1 parent f6ebcdc commit e10ff16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e10ff16

Please sign in to comment.