From 64a9858983183998ffe436e1853b70455b6e8659 Mon Sep 17 00:00:00 2001 From: Joe Smallwood Date: Thu, 28 Sep 2023 12:43:29 +0300 Subject: [PATCH] Ignore empty category page main templates Fall back to legacy category page rendering if no blocks have been defined --- components/categories/CategoryPageContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/categories/CategoryPageContent.tsx b/components/categories/CategoryPageContent.tsx index 1a2ee067..bac6d537 100644 --- a/components/categories/CategoryPageContent.tsx +++ b/components/categories/CategoryPageContent.tsx @@ -79,7 +79,7 @@ const CategoryPageContent = ({ page: CategoryPage; pageSectionColor: string; }) => { - const hasMainContentTemplate = !!page.layout?.layoutMainBottom; + const hasMainContentTemplate = !!page.layout?.layoutMainBottom?.length; const hasAsideTemplate = !!page.layout?.layoutAside; const hasAside = hasAsideTemplate &&