Skip to content

Commit a31c4ab

Browse files
committed
(demo) reload rooms after deletion
1 parent 4c377b2 commit a31c4ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

demo/src/ChatContainer.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,7 @@ export default {
631631
632632
await roomsRef.doc(roomId).delete()
633633
634-
const i = this.rooms.map(room => room.roomId).indexOf(roomId)
635-
if (i !== -1) this.rooms.splice(i, 1)
634+
this.fetchRooms()
636635
},
637636
638637
resetForms() {

0 commit comments

Comments
 (0)