mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
filter missing doc_ids from root doc_ids list
This commit is contained in:
parent
f70ab03bd8
commit
56cb901b41
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ module.exports = ClsiManager =
|
||||||
# present in the docupdater. This allows finaliseRequest to
|
# present in the docupdater. This allows finaliseRequest to
|
||||||
# identify the root doc.
|
# identify the root doc.
|
||||||
possibleRootDocIds = [options.rootDoc_id, project.rootDoc_id]
|
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]
|
path = docPath[rootDoc_id]
|
||||||
docs[path] ?= {_id: rootDoc_id, path: path}
|
docs[path] ?= {_id: rootDoc_id, path: path}
|
||||||
ClsiManager._finaliseRequest project_id, options, project, docs, [], callback
|
ClsiManager._finaliseRequest project_id, options, project, docs, [], callback
|
||||||
|
|
Loading…
Reference in a new issue