Skip to content

Commit f9e4522

Browse files
committed
(fix) infinite spinner with loadFirstRoom
1 parent b58a653 commit f9e4522

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ChatWindow/ChatWindow.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ export default {
132132
rooms: {
133133
immediate: true,
134134
handler(newVal, oldVal) {
135-
if (!this.loadFirstRoom) return (this.showRoomsList = true)
135+
if (!this.loadFirstRoom) {
136+
this.room = {}
137+
this.showRoomsList = true
138+
return
139+
}
136140
137141
if (
138142
!newVal[0] ||

0 commit comments

Comments
 (0)