Skip to content

Commit

Permalink
Guard against null value
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jun 5, 2024
1 parent 85d1c83 commit e378dad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/blocks/src/store/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit e378dad

Please sign in to comment.