Skip to content

Commit

Permalink
Merge pull request #175 from kausaltech/fix/ignore-empty-template
Browse files Browse the repository at this point in the history
Ignore empty category page main templates
  • Loading branch information
woodwoerk authored Sep 28, 2023
2 parents ec9a08e + 64a9858 commit f21fc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/categories/CategoryPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit f21fc6d

Please sign in to comment.