mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:42:55 +00:00
Extra null check
This commit is contained in:
parent
a3847d21d5
commit
333591d087
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ module.exports = UpdateManager =
|
|||
UpdateManager.applyUpdates project_id, doc_id, updates, callback
|
||||
|
||||
applyUpdates: (project_id, doc_id, updates, callback = (error) ->) ->
|
||||
for update in updates
|
||||
for update in updates or []
|
||||
UpdateManager._sanitizeUpdate update
|
||||
ShareJsUpdateManager.applyUpdates project_id, doc_id, updates, (error, updatedDocLines, version) ->
|
||||
return callback(error) if error?
|
||||
|
|
Loading…
Reference in a new issue