Skip to content

Commit

Permalink
Don't add emtpy metadata.ignoredHookedBlocks attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 7, 2024
1 parent aa83a98 commit 268a7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ const buildBlockTypeItem =

return {
...blockItemBase,
initialAttributes: ignoredHookedBlocks
initialAttributes: ignoredHookedBlocks.length
? { metadata: { ignoredHookedBlocks } }
: {},
description: blockType.description,
Expand Down

0 comments on commit 268a7c8

Please sign in to comment.