We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73b4298 commit 5e0437dCopy full SHA for 5e0437d
packages/editor/src/components/start-page-options/index.js
@@ -151,12 +151,13 @@ export default function StartPageOptions() {
151
'core',
152
'enableChoosePatternModal'
153
);
154
+ const currentPostType = getCurrentPostType();
155
return {
156
postId: getCurrentPostId(),
157
enabled:
158
choosePatternModalEnabled &&
- TEMPLATE_POST_TYPE !== getCurrentPostType() &&
159
- TEMPLATE_PART_POST_TYPE !== getCurrentPostType(),
+ TEMPLATE_POST_TYPE !== currentPostType &&
160
+ TEMPLATE_PART_POST_TYPE !== currentPostType,
161
};
162
}, [] );
163
0 commit comments