1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 14:13:28 +00:00

Merge pull request from overleaf/ns-default-ranges

use empty object for ranges if it doesn't exist
This commit is contained in:
nate stemen 2020-03-09 11:24:22 -04:00 committed by GitHub
commit c26735dc41

View file

@ -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