From f48b8857298f90f6e48cbf47f0100cd50923fe5c Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:11:58 +1000 Subject: [PATCH] drop redundant conditional --- docs/components/docs/featured-docs/client.tsx | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/docs/components/docs/featured-docs/client.tsx b/docs/components/docs/featured-docs/client.tsx index 99901261e38..74a03c48507 100644 --- a/docs/components/docs/featured-docs/client.tsx +++ b/docs/components/docs/featured-docs/client.tsx @@ -50,30 +50,29 @@ export function FeaturedDocsClient ({ featuredDocsMap }: { featuredDocsMap: Feat {/* Remaining groups */} - {!!restGroups && - restGroups.map((group, i) => ( -
- - {group.groupName} - - - {group.groupDescription.children.map((child, j) => ( - - ))} - + {restGroups.map((group, i) => ( +
+ + {group.groupName} + + + {group.groupDescription.children.map((child, j) => ( + + ))} + - - {group.items.map((item, j) => ( - - ))} - -
+ + {group.items.map((item, j) => ( + + ))} + +
))} )