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()}...`
|
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}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user