Skip to content

Commit b69dc0a

Browse files
committed
Guard against null value
1 parent 1b408c7 commit b69dc0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/blocks/src/store/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function matchesAttributes( blockAttributes, variationAttributes ) {
3434
return Object.entries( variationAttributes ).every( ( [ key, value ] ) => {
3535
if (
3636
typeof value === 'object' &&
37+
value !== null &&
3738
typeof blockAttributes[ key ] === 'object'
3839
) {
3940
return matchesAttributes( blockAttributes[ key ], value );

0 commit comments

Comments
 (0)