fix rendering issue

This commit is contained in:
Ramón Souza 2024-06-13 11:16:16 -03:00
parent dc421b512b
commit 8625d84f03

View File

@ -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}