Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 10, 2023
1 parent a8d8767 commit 1e66c5d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/edit-site/src/components/start-page-options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function StartPageOptions() {
const [ isClosed, setIsClosed ] = useState( false );
const { shouldOpenModal, postType, rootClientId } = useSelect(
( select ) => {
// Check that a page is being edited in content focus mode, and the welcome guide isn't also open.
const { hasPageContentFocus, getEditedPostContext } =
select( editSiteStore );
const context = getEditedPostContext();
Expand All @@ -35,7 +34,6 @@ export default function StartPageOptions() {
return { shouldOpenModal: false };
}

// Check if there's a page content block. Return early if there isn't.
const { __experimentalGetGlobalBlocksByName, getBlock } =
select( blockEditorStore );
const [ contentBlockClientId ] =
Expand All @@ -44,7 +42,6 @@ export default function StartPageOptions() {
return { shouldOpenModal: false };
}

// Check if there's inner blocks in the content block.
const contentBlock = getBlock( contentBlockClientId );
if ( contentBlock?.innerBlocks?.length ) {
return { shouldOpenModal: false };
Expand Down

0 comments on commit 1e66c5d

Please sign in to comment.