check if we do have jobs before trying to iterate over them
This commit is contained in:
parent
9c5e709c0c
commit
056f20ddfe
|
@ -43,7 +43,7 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/travis-ci/travis-api.git
|
remote: git://github.com/travis-ci/travis-api.git
|
||||||
revision: 3f5cf5f33a6b6ca0ff1562e18c0cd24d3cc010fa
|
revision: 8abd6fa15076c6403477bda39f8d78ebe10c504d
|
||||||
specs:
|
specs:
|
||||||
travis-api (0.0.1)
|
travis-api (0.0.1)
|
||||||
backports (~> 2.5)
|
backports (~> 2.5)
|
||||||
|
|
|
@ -11,7 +11,9 @@ Travis.RepoController = Travis.Controller.extend
|
||||||
|
|
||||||
if build = @get('build')
|
if build = @get('build')
|
||||||
build.updateTimes()
|
build.updateTimes()
|
||||||
build.get('jobs').forEach (j) -> j.updateTimes()
|
|
||||||
|
if jobs = build.get('jobs')
|
||||||
|
jobs.forEach (j) -> j.updateTimes()
|
||||||
|
|
||||||
Ember.run.later(@updateTimes.bind(this), Travis.INTERVALS.updateTimes)
|
Ember.run.later(@updateTimes.bind(this), Travis.INTERVALS.updateTimes)
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
9f4adc71
|
5b686eb4
|
Loading…
Reference in New Issue
Block a user