fix rendering issue
This commit is contained in:
parent
dc421b512b
commit
8625d84f03
@ -14,7 +14,6 @@ import useDeduplicatedSubscription from '/imports/ui/core/hooks/useDeduplicatedS
|
||||
import UserListParticipantsPageContainer from './page/component';
|
||||
import IntersectionWatcher from './intersection-watcher/intersectionWatcher';
|
||||
import { setLocalUserList } from '/imports/ui/core/hooks/useLoadedUserList';
|
||||
import { uniqueId } from '/imports/utils/string-utils';
|
||||
|
||||
interface UserListParticipantsProps {
|
||||
count: number;
|
||||
@ -106,7 +105,8 @@ const UserListParticipants: React.FC<UserListParticipantsProps> = ({
|
||||
const restOfUsers = count % 50;
|
||||
return (
|
||||
<IntersectionWatcher
|
||||
key={uniqueId()}
|
||||
// eslint-disable-next-line react/no-array-index-key
|
||||
key={i}
|
||||
ParentRef={userListRef}
|
||||
isLastItem={isLastItem}
|
||||
restOfUsers={isLastItem ? restOfUsers : 50}
|
||||
|
Loading…
Reference in New Issue
Block a user