diff --git a/packages/editor/src/components/start-page-options/index.js b/packages/editor/src/components/start-page-options/index.js index 7fd7ae95d24140..0465045180a813 100644 --- a/packages/editor/src/components/start-page-options/index.js +++ b/packages/editor/src/components/start-page-options/index.js @@ -17,7 +17,10 @@ import { store as interfaceStore } from '@wordpress/interface'; /** * Internal dependencies */ -import { TEMPLATE_POST_TYPE } from '../../store/constants'; +import { + TEMPLATE_POST_TYPE, + TEMPLATE_PART_POST_TYPE, +} from '../../store/constants'; import { store as editorStore } from '../../store'; export function useStartPatterns() { @@ -148,11 +151,13 @@ export default function StartPageOptions() { 'core', 'enableChoosePatternModal' ); + const currentPostType = getCurrentPostType(); return { postId: getCurrentPostId(), enabled: choosePatternModalEnabled && - TEMPLATE_POST_TYPE !== getCurrentPostType(), + TEMPLATE_POST_TYPE !== currentPostType && + TEMPLATE_PART_POST_TYPE !== currentPostType, }; }, [] );