diff --git a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js index 644b0bc0a253f..7b1321fdf4b8a 100644 --- a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +++ b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js @@ -56,7 +56,7 @@ function useResolveEditedEntityAndContext( { postId, postType } ) { homepageId: siteData?.show_on_front === 'page' && [ 'number', 'string' ].includes( - typeof siteData?.page_on_front + typeof siteData.page_on_front ) ? siteData.page_on_front.toString() : null,