mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Null safe access of id property, needed as user can be null.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user