Skip to content

Commit 3e98f55

Browse files
committed
Always show at least one empty room for group join
Signed-off-by: Andreas Greimel <andreas.greimel@tngtech.com>
1 parent 76e800e commit 3e98f55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/components/RoomGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const RoomGrid = (props: Props) => {
7676

7777
const minimumRoomsToShow = group.groupJoin.minimumRoomsToShow || 1;
7878
const [emptyRooms, filledRooms] = partition(rooms, (room) => participantsInMeeting(room.meetingId).length === 0);
79-
return [...filledRooms, ...emptyRooms.slice(0, minimumRoomsToShow - filledRooms.length)];
79+
return [...filledRooms, ...emptyRooms.slice(0, Math.max(minimumRoomsToShow - filledRooms.length, 1))];
8080
}
8181

8282
function renderRoomCards() {

0 commit comments

Comments
 (0)