From 935c8f3e7d656d51b7b8fd0940c23d14c872491e Mon Sep 17 00:00:00 2001 From: nd0ut Date: Mon, 10 Oct 2022 10:46:45 +0400 Subject: [PATCH] fix(register-blocks): remove optional chaining usage --- abstract/registerBlocks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/abstract/registerBlocks.js b/abstract/registerBlocks.js index 5292ffcfe..44d0cb2ac 100644 --- a/abstract/registerBlocks.js +++ b/abstract/registerBlocks.js @@ -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); + } } }