diff --git a/packages/block-library/src/post-template/edit.js b/packages/block-library/src/post-template/edit.js index 4e7e514ed82b12..b28c726acfc77e 100644 --- a/packages/block-library/src/post-template/edit.js +++ b/packages/block-library/src/post-template/edit.js @@ -188,7 +188,7 @@ export default function PostTemplateEdit( { // When we preview Query Loop blocks we should prefer the current // block's postType, which is passed through block context. const usedPostType = - postTypeFromContext !== 'page' + postTypeFromContext && postTypeFromContext !== 'page' ? postTypeFromContext : previewPostType || postType; return {