From 7840137cdff2b22721a44f74e0f6de509a5d2bde Mon Sep 17 00:00:00 2001 From: mg1n Date: Tue, 4 Mar 2025 09:11:21 -0700 Subject: [PATCH 1/2] Conditional check to ensure that "Articles in this section" is not displayed if no articles. --- src/layouts/ArticlePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/ArticlePage.tsx b/src/layouts/ArticlePage.tsx index e5e9dd7ec..903470a03 100644 --- a/src/layouts/ArticlePage.tsx +++ b/src/layouts/ArticlePage.tsx @@ -67,7 +67,7 @@ const ArticlePage = ({ pageInfo, promoAfter, promoBefore, customNav, customNavPa {/* Child Navigation */} - {children && ( + {children && && children?.length > 0 && ( Articles in this section: From 0142f930ac9b870b3dc29b176e3fc2fa70df2513 Mon Sep 17 00:00:00 2001 From: mg1n Date: Tue, 4 Mar 2025 09:21:30 -0700 Subject: [PATCH 2/2] Tiny fix --- src/layouts/ArticlePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/ArticlePage.tsx b/src/layouts/ArticlePage.tsx index 903470a03..a8bd9b067 100644 --- a/src/layouts/ArticlePage.tsx +++ b/src/layouts/ArticlePage.tsx @@ -67,7 +67,7 @@ const ArticlePage = ({ pageInfo, promoAfter, promoBefore, customNav, customNavPa {/* Child Navigation */} - {children && && children?.length > 0 && ( + {children && children?.length > 0 && ( Articles in this section: