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:
parent
f56d177b9b
commit
2fff6b3046
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue