Skip to content

Commit

Permalink
Don't try to unlock what's already unlocked, just turn the handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 19, 2024
1 parent c8fee33 commit 5c5d54a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/patterns/src/components/content-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const { BlockQuickNavigation } = unlock( blockEditorPrivateApis );

export default function ContentPanel() {
const allClientIds = useSelect(
( select ) =>
unlock( select( blockEditorStore ) ).getClientIdsWithDescendants(),
( select ) => select( blockEditorStore ).getClientIdsWithDescendants(),
[]
);
const { getBlock } = useSelect( blockEditorStore );
Expand Down

0 comments on commit 5c5d54a

Please sign in to comment.