diff --git a/packages/blocks/src/store/process-block-type.js b/packages/blocks/src/store/process-block-type.js index 154f74c6ab7296..9c171f2c7e0f4e 100644 --- a/packages/blocks/src/store/process-block-type.js +++ b/packages/blocks/src/store/process-block-type.js @@ -93,9 +93,14 @@ export const processBlockType = save: () => null, ...bootstrappedBlockType, ...blockSettings, + // blockType.variations can be defined as a filePath. variations: mergeBlockVariations( - bootstrappedBlockType?.variations, - blockSettings?.variations + Array.isArray( bootstrappedBlockType?.variations ) + ? bootstrappedBlockType.variations + : [], + Array.isArray( blockSettings?.variations ) + ? blockSettings.variations + : [] ), };