Skip to content

Commit

Permalink
🐛 : fix js error when job status is null
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Sep 1, 2019
1 parent e7fd764 commit 9a65016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/templates/job.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ <h2>Stack {{stack.name}}</h2>
secondStepTitle: () => store.state.job.type === 'RUN' ? 'apply' : 'destroy',
isSecondStepDoable: () => {
if (editionMode) return false;
return store.state.job.status.indexOf('STARTED') < 0 &&
return store.state.job.status !== null &&
store.state.job.status.indexOf('STARTED') < 0 &&
store.state.job.status.indexOf('FAILED') < 0 &&
store.state.job.status.indexOf('APPLY') < 0;
}
},
methods: {
applyJob: function () {
planOrApplyJob('APPLY');
}
applyJob: () => planOrApplyJob('APPLY'),
retryJob: () => planOrApplyJob('retry'),
}
});
});
Expand Down

0 comments on commit 9a65016

Please sign in to comment.