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()}...`
return (
<div className={_s.d}>
<div className={[_s.d, _s.w300PX].join(' ')}>
<NavLink
to={`/groups/${group.get('id')}`}
className={navLinkClasses}

View File

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