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 {
205205 const roomUserIds = []
206206 rooms .forEach (room => {
207207 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)
209209 if (! foundUser && roomUserIds .indexOf (userId) === - 1 ) {
210210 roomUserIds .push (userId)
211211 }
@@ -230,7 +230,7 @@ export default {
230230 roomList[room .id ] = { ... room .data (), users: [] }
231231
232232 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)
234234 if (foundUser) roomList[room .id ].users .push (foundUser)
235235 })
236236 })
You can’t perform that action at this time.
0 commit comments