diff --git a/packages/blocks/src/store/utils.js b/packages/blocks/src/store/utils.js index 56b8285d5b7bef..e04d965728c53d 100644 --- a/packages/blocks/src/store/utils.js +++ b/packages/blocks/src/store/utils.js @@ -34,6 +34,7 @@ export function matchesAttributes( blockAttributes, variationAttributes ) { return Object.entries( variationAttributes ).every( ( [ key, value ] ) => { if ( typeof value === 'object' && + value !== null && typeof blockAttributes[ key ] === 'object' ) { return matchesAttributes( blockAttributes[ key ], value );