Skip to content

Commit

Permalink
Fix order in calendar focus (keep the topological sort)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Careil committed Jul 12, 2017
1 parent ca52eea commit 7d89c31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/main/javascript/app/pages/CalendarFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,11 @@ class CalendarFocus extends React.Component {
);
};

const jobInfos = _.sortBy(
_.map(_.keys(jobs), j => _.find(workflow.jobs, { id: j })),
"name"
const jobInfos = _.filter(
workflow.jobs,
j => _.includes(_.keys(jobs), j.id)
);

detailsSvg
.selectAll("g.jobTimeline")
.data(jobInfos, job => job.id)
Expand Down

0 comments on commit 7d89c31

Please sign in to comment.