We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e800e commit 3e98f55Copy full SHA for 3e98f55
1 file changed
client/src/components/RoomGrid.tsx
@@ -76,7 +76,7 @@ const RoomGrid = (props: Props) => {
76
77
const minimumRoomsToShow = group.groupJoin.minimumRoomsToShow || 1;
78
const [emptyRooms, filledRooms] = partition(rooms, (room) => participantsInMeeting(room.meetingId).length === 0);
79
- return [...filledRooms, ...emptyRooms.slice(0, minimumRoomsToShow - filledRooms.length)];
+ return [...filledRooms, ...emptyRooms.slice(0, Math.max(minimumRoomsToShow - filledRooms.length, 1))];
80
}
81
82
function renderRoomCards() {
0 commit comments