Skip to content

Commit

Permalink
Fix usage to utilise new selector
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jan 5, 2023
1 parent b5de919 commit c74eaf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ const ListViewBlockContents = forwardRef(
const {
hasBlockMovingClientId,
getSelectedBlockClientId,
__experimentalGetLastInsertedBlockClientId,
getLastInsertedBlockClientIds,
} = select( blockEditorStore );
return {
blockMovingClientId: hasBlockMovingClientId(),
selectedBlockInBlockEditor: getSelectedBlockClientId(),
lastInsertedBlockClientId:
__experimentalGetLastInsertedBlockClientId(),
getLastInsertedBlockClientIds()[ 0 ],
};
},
[ clientId ]
Expand Down

1 comment on commit c74eaf1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3845537731
📝 Reported issues:

Please sign in to comment.