mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:12:27 +00:00
added null check into response.outputFiles?
This commit is contained in:
parent
79929eae73
commit
a297c07bbb
1 changed files with 3 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue