fix: Guard against empty items in Facepile users, closes #6087
This commit is contained in:
@@ -32,9 +32,12 @@ function Facepile({
|
|||||||
</span>
|
</span>
|
||||||
</More>
|
</More>
|
||||||
)}
|
)}
|
||||||
{users.slice(0, limit).map((user) => (
|
{users
|
||||||
<AvatarWrapper key={user.id}>{renderAvatar(user)}</AvatarWrapper>
|
.filter(Boolean)
|
||||||
))}
|
.slice(0, limit)
|
||||||
|
.map((user) => (
|
||||||
|
<AvatarWrapper key={user.id}>{renderAvatar(user)}</AvatarWrapper>
|
||||||
|
))}
|
||||||
</Avatars>
|
</Avatars>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user