mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Null safe access of id
property, needed as user can be null.
This commit is contained in:
parent
0ad374556d
commit
eab8b4b6c8
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ module.exports = UpdatesManager =
|
|||
# if not, add them to the users list of the earliest update
|
||||
userExists = false
|
||||
for user in earliestUpdate.meta.users
|
||||
if (!user and !update.meta.user) or (user.id == update.meta.user?.id)
|
||||
if (!user and !update.meta.user) or (user?.id == update.meta.user?.id)
|
||||
userExists = true
|
||||
break
|
||||
if !userExists
|
||||
|
|
Loading…
Reference in a new issue