Explorar o código

filter missing doc_ids from root doc_ids list

Brian Gough %!s(int64=9) %!d(string=hai) anos
pai
achega
56cb901b41

+ 1 - 1
services/web/app/coffee/Features/Compile/ClsiManager.coffee

@@ -184,7 +184,7 @@ module.exports = ClsiManager =
 				# present in the docupdater. This allows finaliseRequest to
 				# identify the root doc.
 				possibleRootDocIds = [options.rootDoc_id, project.rootDoc_id]
-				for rootDoc_id in possibleRootDocIds when rootDoc_id?
+				for rootDoc_id in possibleRootDocIds when rootDoc_id? and rootDoc_id of docPath
 					path = docPath[rootDoc_id]
 					docs[path] ?= {_id: rootDoc_id, path: path}
 				ClsiManager._finaliseRequest project_id, options, project, docs, [], callback