Skip to content

Commit

Permalink
Revert "Footnotes: Fix recursion into updating attributes when attrib…
Browse files Browse the repository at this point in the history
…utes is not an object (#53257)"

This reverts commit ab04074.
  • Loading branch information
tellthemachines committed Aug 31, 2023
1 parent c81f322 commit 0139ded
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/core-data/src/entity-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 0139ded

Please sign in to comment.