copy room list before sorting in home and direct tab
This commit is contained in:
parent
89f6409e4e
commit
f7ba5edb3a
2 changed files with 2 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ export function Direct() {
|
|||
|
||||
const sortedDirects = useMemo(() => {
|
||||
if (closedCategories.has(DEFAULT_CATEGORY_ID)) {
|
||||
return directs
|
||||
return Array.from(directs)
|
||||
.filter((roomId) => {
|
||||
if (roomId === selectedRoomId) return true;
|
||||
const notification = roomToNotifications.get(roomId);
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ export function Home() {
|
|||
|
||||
const sortedRooms = useMemo(() => {
|
||||
if (closedCategories.has(DEFAULT_CATEGORY_ID)) {
|
||||
return rooms
|
||||
return Array.from(rooms)
|
||||
.filter((roomId) => {
|
||||
if (roomId === selectedRoomId) return true;
|
||||
const notification = roomToNotifications.get(roomId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue