Henry Oswald 11 лет назад
Родитель
Сommit
d80179ecc6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/coffee/Features/Compile/ClsiManager.coffee

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

@@ -109,7 +109,7 @@ module.exports = ClsiManager =
 	wordCount: (project_id, file, options, callback = (error, response) ->) ->
 		ClsiManager._buildRequest project_id, options, (error, req) ->
 			compilerUrl = ClsiManager._getCompilerUrl(options?.compileGroup)
-			filename = file || req.compile.rootResourcePath
+			filename = file || req?.compile?.rootResourcePath
 			request.get {
 				url:  "#{compilerUrl}/project/#{project_id}/wordcount?file=#{filename}"
 			}, (error, response, body) ->