Skip to content

Commit

Permalink
Forgot to pass on the correct args to updateBlockSelection()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Feb 18, 2022
1 parent 4435683 commit 0c3eb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/list-view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ function ListView(
setExpandedState,
} );
const selectEditorBlock = useCallback(
( clientId ) => {
updateBlockSelection( clientId );
( event, clientId ) => {
updateBlockSelection( event, clientId );
setSelectedTreeId( clientId );
},
[ setSelectedTreeId, updateBlockSelection ]
Expand Down

0 comments on commit 0c3eb7a

Please sign in to comment.