Skip to content

Commit

Permalink
[ML] Removing duplicate calendars list in job management (elastic#32647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Mar 8, 2019
1 parent c59db91 commit cc7788d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export function extractJobDetails(job) {
};
if (job.calendars) {
calendars.items = job.calendars.map(c => ['', c]);
// remove the calendars list from the general section
// so not to show it twice.
const i = general.items.findIndex(item => item[0] === 'calendars');
if (i >= 0) {
general.items.splice(i, 1);
}
}

const detectors = {
Expand Down

0 comments on commit cc7788d

Please sign in to comment.