bug fixing
This commit is contained in:
@@ -28,6 +28,10 @@ export default function RoomCard(props: IRoomCardProps) {
|
|||||||
|
|
||||||
// show members who are in the invite list but not already in the room
|
// show members who are in the invite list but not already in the room
|
||||||
const membersInvited = () => {
|
const membersInvited = () => {
|
||||||
|
if (!listOfValidUserIdsInRoom) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const invitedMembersNotInRoom = props.room.members?.filter(
|
const invitedMembersNotInRoom = props.room.members?.filter(
|
||||||
(memberId) => !listOfValidUserIdsInRoom.includes(memberId)
|
(memberId) => !listOfValidUserIdsInRoom.includes(memberId)
|
||||||
);
|
);
|
||||||
@@ -81,6 +85,10 @@ export default function RoomCard(props: IRoomCardProps) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const membersInRoom = () => {
|
const membersInRoom = () => {
|
||||||
|
if (!listOfValidUserIdsInRoom) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const listOfUsersInRoom: User[] = listOfValidUserIdsInRoom.map(
|
const listOfUsersInRoom: User[] = listOfValidUserIdsInRoom.map(
|
||||||
(userId) => teamUsersMap[userId]
|
(userId) => teamUsersMap[userId]
|
||||||
);
|
);
|
||||||
|
|||||||
+2
-2
@@ -8,9 +8,9 @@ export default class Room {
|
|||||||
|
|
||||||
link: string; // google meet link for now
|
link: string; // google meet link for now
|
||||||
|
|
||||||
members: string[]; //userIds of "mandatory"/invited people including the person who created it
|
members: string[] = []; //userIds of "mandatory"/invited people including the person who created it
|
||||||
|
|
||||||
membersInRoom: string[];
|
membersInRoom: string[] = [];
|
||||||
|
|
||||||
attachments: string[]; // the links themselves (NOT Ids)...there will be duplicate entries in the attachments table which will be created
|
attachments: string[]; // the links themselves (NOT Ids)...there will be duplicate entries in the attachments table which will be created
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user