Просмотр исходного кода

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

use empty object for ranges if it doesn't exist
nate stemen 6 лет назад
Родитель
Сommit
c26735dc41
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/document-updater/app/coffee/DocumentManager.coffee

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

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