diff --git a/packages/indiekit/lib/post-types.js b/packages/indiekit/lib/post-types.js index f200697c3..cb89b470f 100644 --- a/packages/indiekit/lib/post-types.js +++ b/packages/indiekit/lib/post-types.js @@ -35,5 +35,10 @@ export const getPostTypes = ({ postTypes, publication }) => { .map((entry) => entry[0]); } - return postTypes; + // Only return fully configured post types + const configuredPostTypes = Object.fromEntries( + Object.entries(postTypes).filter(([, value]) => value.properties), + ); + + return configuredPostTypes; };