Skip to content

Commit

Permalink
fix(JobUtil): Testing for Array made more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
kensipe committed Mar 1, 2018
1 parent 7b42b68 commit e16e570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils/JobUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const JobUtil = {
let scheduleId = "default";
let schedulePolicy = "ALLOW";
// preserve id and concurrencyPolicy
if (typeof spec.schedules != "undefined" && spec.schedules.length > 0) {
if (Array.isArray(spec.schedules) && spec.schedules.length > 0) {
scheduleId = spec.schedules[0].id;
schedulePolicy = spec.schedules[0].concurrencyPolicy;
}
Expand Down

0 comments on commit e16e570

Please sign in to comment.