File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export default {
205
205
const roomUserIds = []
206
206
rooms .forEach (room => {
207
207
room .data ().users .forEach (userId => {
208
- const foundUser = this .allUsers .find (user => user ._id === userId)
208
+ const foundUser = this .allUsers .find (user => user? ._id === userId)
209
209
if (! foundUser && roomUserIds .indexOf (userId) === - 1 ) {
210
210
roomUserIds .push (userId)
211
211
}
@@ -230,7 +230,7 @@ export default {
230
230
roomList[room .id ] = { ... room .data (), users: [] }
231
231
232
232
room .data ().users .forEach (userId => {
233
- const foundUser = this .allUsers .find (user => user ._id === userId)
233
+ const foundUser = this .allUsers .find (user => user? ._id === userId)
234
234
if (foundUser) roomList[room .id ].users .push (foundUser)
235
235
})
236
236
})
You can’t perform that action at this time.
0 commit comments