Преглед изворни кода

use empty object for ranges if it doesn't exist

nate stemen пре 6 година
родитељ
комит
ffd8d0745d
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