Skip to content

Commit

Permalink
Whoops, had the args in the wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling committed Dec 17, 2021
1 parent 7d31491 commit 6d0f12c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/page-list/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export default function PageListEdit( { context, clientId } ) {

function useFrontPageId() {
return useSelect( ( select ) => {
const site = select( coreStore ).getEntityRecord( 'site', 'root' );
return site?.show_on_front === 'page' && site?.page_on_front
const site = select( coreStore ).getEntityRecord( 'root', 'site' );
return site?.show_on_front === 'page' && site?.page_on_front;
}, [] );
}

Expand Down Expand Up @@ -163,7 +163,7 @@ const PageItems = memo( function PageItems( {
'open-on-hover-click':
! context.openSubmenusOnClick &&
context.showSubmenuIcon,
'menu-item-home': page.id === frontPageId
'menu-item-home': page.id === frontPageId,
} ) }
>
{ hasChildren && context.openSubmenusOnClick ? (
Expand Down

0 comments on commit 6d0f12c

Please sign in to comment.