Skip to content

Commit 7457181

Browse files
committed
(fix) delete room error
1 parent 2063976 commit 7457181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChatWindow/ChatWindow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default {
193193
(!oldVal || newVal.length !== oldVal.length)
194194
) {
195195
if (this.roomId) {
196-
const room = newVal.find(r => r.roomId === this.roomId)
196+
const room = newVal.find(r => r.roomId === this.roomId) || {}
197197
this.fetchRoom({ room })
198198
} else if (!this.isMobile || this.singleRoom) {
199199
this.fetchRoom({ room: this.orderedRooms[0] })

0 commit comments

Comments
 (0)