From e378dadb9010c5443d8f5d08e72c017ada166338 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 5 Jun 2024 12:38:45 +0200 Subject: [PATCH] Guard against null value --- packages/blocks/src/store/utils.js | 1 + 1 file changed, 1 insertion(+) 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 );