mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
use empty object for ranges if it doesn't exist
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = DocumentManager =
|
||||
return callback(error) if error?
|
||||
RedisManager.setHistoryType doc_id, projectHistoryType, (error) ->
|
||||
return callback(error) if error?
|
||||
callback null, lines, version, ranges, pathname, projectHistoryId, null, false
|
||||
callback null, lines, version, ranges || {}, pathname, projectHistoryId, null, false
|
||||
else
|
||||
callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user