Skip to content

Commit

Permalink
[ML] Removing alerting_rules from general job list items (#131936)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored May 11, 2022
1 parent 10915c9 commit b573798
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ export function extractJobDetails(job, basePath, refreshJobList) {
return ['', <EditAlertRule initialAlert={v} onSave={refreshJobList} />];
}),
};
if (job.alerting_rules) {
// remove the alerting_rules list from the general section
// so not to show it twice.
const i = general.items.findIndex((item) => item[0] === 'alerting_rules');
if (i >= 0) {
general.items.splice(i, 1);
}
}

const detectors = {
id: 'detectors',
Expand Down

0 comments on commit b573798

Please sign in to comment.