mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:31:21 +00:00
added missing null check in
This commit is contained in:
parent
a94a03fc3e
commit
d80179ecc6
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ module.exports = ClsiManager =
|
||||||
wordCount: (project_id, file, options, callback = (error, response) ->) ->
|
wordCount: (project_id, file, options, callback = (error, response) ->) ->
|
||||||
ClsiManager._buildRequest project_id, options, (error, req) ->
|
ClsiManager._buildRequest project_id, options, (error, req) ->
|
||||||
compilerUrl = ClsiManager._getCompilerUrl(options?.compileGroup)
|
compilerUrl = ClsiManager._getCompilerUrl(options?.compileGroup)
|
||||||
filename = file || req.compile.rootResourcePath
|
filename = file || req?.compile?.rootResourcePath
|
||||||
request.get {
|
request.get {
|
||||||
url: "#{compilerUrl}/project/#{project_id}/wordcount?file=#{filename}"
|
url: "#{compilerUrl}/project/#{project_id}/wordcount?file=#{filename}"
|
||||||
}, (error, response, body) ->
|
}, (error, response, body) ->
|
||||||
|
|
Loading…
Reference in a new issue