Skip to content

Commit

Permalink
fix(register-blocks): remove optional chaining usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Oct 10, 2022
1 parent c925951 commit 935c8f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion abstract/registerBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export function registerBlocks(blockExports) {
if (!tagName.startsWith('lr-')) {
tagName = 'lr-' + tagName;
}
blockExports[blockName].reg?.(tagName);
if (blockExports[blockName].reg) {
blockExports[blockName].reg(tagName);
}
}
}

0 comments on commit 935c8f3

Please sign in to comment.