Fixed issue with empty featured group in FeaturedGroupsInjection

• Fixed:
- issue with empty featured group in FeaturedGroupsInjection

• Added:
- missing key in loop in FeaturedGroupsInjection render
This commit is contained in:
Developer 2021-02-11 00:17:56 -05:00
parent f56d177b9b
commit 2fff6b3046
2 changed files with 7 additions and 8 deletions

View File

@ -60,7 +60,7 @@ class GroupCollectionItem extends ImmutablePureComponent {
if (isAddable && groupTitle.length > 52) groupTitle = `${groupTitle.substring(0, 52).trim()}...` if (isAddable && groupTitle.length > 52) groupTitle = `${groupTitle.substring(0, 52).trim()}...`
return ( return (
<div className={_s.d}> <div className={[_s.d, _s.w300PX].join(' ')}>
<NavLink <NavLink
to={`/groups/${group.get('id')}`} to={`/groups/${group.get('id')}`}
className={navLinkClasses} className={navLinkClasses}

View File

@ -37,13 +37,12 @@ class FeaturedGroupsInjection extends ImmutablePureComponent {
isXS={isXS} isXS={isXS}
> >
{ {
groupIds.map((groupId) => ( groupIds.map((groupId, i) => (
<div className={[_s.d, _s.w300PX].join(' ')}>
<GroupCollectionItem <GroupCollectionItem
isAddable isAddable
id={groupId} id={groupId}
key={`featured-group-${i}-${groupId}`}
/> />
</div>
)) ))
} }
</TimelineInjectionLayout> </TimelineInjectionLayout>