Skip to content

Commit

Permalink
Fix offsite navigation editor component loading issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jan 6, 2023
1 parent b630d7e commit ad706c9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ const ListViewBlockContents = forwardRef(
getSelectedBlockClientId,
getLastInsertedBlocksClientIds,
} = select( blockEditorStore );
const lastInsertedBlocksClientIds =
getLastInsertedBlocksClientIds();
return {
blockMovingClientId: hasBlockMovingClientId(),
selectedBlockInBlockEditor: getSelectedBlockClientId(),
lastInsertedBlockClientId:
getLastInsertedBlocksClientIds()[ 0 ],
lastInsertedBlocksClientIds &&
lastInsertedBlocksClientIds[ 0 ],
};
},
[ clientId ]
Expand Down

0 comments on commit ad706c9

Please sign in to comment.