added null check into response.outputFiles?

This commit is contained in:
Henry Oswald 2016-06-06 14:56:34 +01:00
parent 79929eae73
commit a297c07bbb

View file

@ -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'