Try omitting bundles from kind page

This commit is contained in:
Sam Carlton 2022-06-06 22:39:57 -05:00
parent 27a8aecb9f
commit 0772495acd

View file

@ -33,7 +33,16 @@ if ( redirectResponse !== null ) {
}
const kindPage = await DoesItAPI.kind( pathSlug )( subSlug ).get()
const rawKindPage = await DoesItAPI.kind( pathSlug )( subSlug ).get()
// Clean up unused kind data
const kindPage = {
...rawKindPage,
items: rawKindPage.items.map( item => ({
...item,
bundles: undefined,
}) )
}
const categorySlug = getKindToCategorySlug( pathSlug )