add another null check on file inside fetchLogs

This commit is contained in:
Henry Oswald 2016-06-25 13:56:45 +01:00
parent 9888d6631a
commit 6526b29f96

View file

@ -156,7 +156,7 @@ define [
method:"GET"
params:
clsiserverid:ide.clsiServerId
if file.url? # FIXME clean this up when we have file.urls out consistently
if file?.url? # FIXME clean this up when we have file.urls out consistently
opts.url = file.url
else if file?.build?
opts.url = "/project/#{$scope.project_id}/build/#{file.build}/output/#{name}"