Skip to content

Commit

Permalink
Footnotes/Edit Site: fix focus in fn insert
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Sep 22, 2023
1 parent ee692dc commit ec0a6e5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -117,9 +117,7 @@ export default function useBlockSync( {
// before the actual blocks get set properly in state.
registry.batch( () => {
setHasControlledInnerBlocks( clientId, true );
const storeBlocks = controlledBlocks.map( ( block ) =>
cloneBlock( block )
);
const storeBlocks = controlledBlocks.map( ( block ) => block );
if ( subscribed.current ) {
pendingChanges.current.incoming = storeBlocks;
}

0 comments on commit ec0a6e5

Please sign in to comment.