From 0139ded9b927012e553b34e0406a6b7e4f7bdafc Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 16 Aug 2023 12:03:19 +1000 Subject: [PATCH] Revert "Footnotes: Fix recursion into updating attributes when attributes is not an object (#53257)" This reverts commit ab04074d185e6691128edb2b69875d50916ac6c0. --- packages/core-data/src/entity-provider.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/core-data/src/entity-provider.js b/packages/core-data/src/entity-provider.js index 3039105d7c55c..6cc1e021841b4 100644 --- a/packages/core-data/src/entity-provider.js +++ b/packages/core-data/src/entity-provider.js @@ -229,15 +229,6 @@ export function useEntityBlockEditor( kind, name, { id: _id } = {} ) { ); function updateAttributes( attributes ) { - // Only attempt to update attributes, if attributes is an object. - if ( - ! attributes || - Array.isArray( attributes ) || - typeof attributes !== 'object' - ) { - return attributes; - } - attributes = { ...attributes }; for ( const key in attributes ) {