mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 16:19:02 +02:00
added null check into response.outputFiles?
This commit is contained in:
@@ -50,8 +50,9 @@ define [
|
||||
|
||||
# make a cache to look up files by name
|
||||
fileByPath = {}
|
||||
for file in response.outputFiles
|
||||
fileByPath[file.path] = file
|
||||
if response?.outputFiles?
|
||||
for file in response?.outputFiles
|
||||
fileByPath[file.path] = file
|
||||
|
||||
if response.status == "timedout"
|
||||
$scope.pdf.view = 'errors'
|
||||
|
||||
Reference in New Issue
Block a user