From 0efb1741e49cb9b1db00c879179582868b5f4747 Mon Sep 17 00:00:00 2001 From: Kai Hao Date: Thu, 13 Jun 2024 02:43:58 +0800 Subject: [PATCH] Fix error --- .../patterns/src/components/pattern-overrides-block-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/patterns/src/components/pattern-overrides-block-controls.js b/packages/patterns/src/components/pattern-overrides-block-controls.js index 156b05cae63ce9..ae8ef5e1bb7da9 100644 --- a/packages/patterns/src/components/pattern-overrides-block-controls.js +++ b/packages/patterns/src/components/pattern-overrides-block-controls.js @@ -127,7 +127,7 @@ export default function PatternOverridesBlockControls() { const _hasPatternOverrides = selectedClientIds.every( ( clientId ) => Object.values( - getBlockAttributes( clientId ).metadata?.bindings ?? {} + getBlockAttributes( clientId )?.metadata?.bindings ?? {} ).some( ( binding ) => binding?.source === PATTERN_OVERRIDES_BINDING_SOURCE