From 38f5c803a46ff9fa843c3aaba39697fd2df115ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAnar=20Vestmann?= <43557895+RunarVestmann@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:44:25 +0000 Subject: [PATCH] feat(web): Allow article to appear multiple times on Category page (#16371) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/screens/Category/Category/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/screens/Category/Category/utils.ts b/apps/web/screens/Category/Category/utils.ts index ab163d2dfa0d..ee4a2abecfb0 100644 --- a/apps/web/screens/Category/Category/utils.ts +++ b/apps/web/screens/Category/Category/utils.ts @@ -204,7 +204,8 @@ export const extractCategoryGroups = ( if (isSameCategory(mainCategory, selectedCategory)) { addPageToGroupMap(groupMap, page, page.group, page.subgroup) - } else if (isSameCategory(secondaryCategory, selectedCategory)) { + } + if (isSameCategory(secondaryCategory, selectedCategory)) { addPageToGroupMap( groupMap, page,