From 0772495acd12c088a1ef4642c6deffb5123c4e61 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 6 Jun 2022 22:39:57 -0500 Subject: [PATCH] Try omitting bundles from kind page --- src/pages/kind/[...kindPath].astro | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/kind/[...kindPath].astro b/src/pages/kind/[...kindPath].astro index 989c67c..196a542 100644 --- a/src/pages/kind/[...kindPath].astro +++ b/src/pages/kind/[...kindPath].astro @@ -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 )