Procházet zdrojové kódy

Merge pull request #122 from overleaf/ns-default-ranges

use empty object for ranges if it doesn't exist
nate stemen před 6 roky
rodič
revize
c26735dc41

+ 1 - 1
services/document-updater/app/coffee/DocumentManager.coffee

@@ -30,7 +30,7 @@ module.exports = DocumentManager =
 						return callback(error) if error?
 						return callback(error) if error?
 						RedisManager.setHistoryType doc_id, projectHistoryType, (error) ->
 						RedisManager.setHistoryType doc_id, projectHistoryType, (error) ->
 							return callback(error) if 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
 			else
 				callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true
 				callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true