Skip to content

Commit 9873838

Browse files
Revert "Footnotes: Fix recursion into updating attributes when attributes is not an object (#53257)"
This reverts commit ab04074.
1 parent edba315 commit 9873838

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/core-data/src/entity-provider.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,6 @@ export function useEntityBlockEditor( kind, name, { id: _id } = {} ) {
229229
);
230230

231231
function updateAttributes( attributes ) {
232-
// Only attempt to update attributes, if attributes is an object.
233-
if (
234-
! attributes ||
235-
Array.isArray( attributes ) ||
236-
typeof attributes !== 'object'
237-
) {
238-
return attributes;
239-
}
240-
241232
attributes = { ...attributes };
242233

243234
for ( const key in attributes ) {

0 commit comments

Comments
 (0)