mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Removing alerting_rules from general job list items (#131936)
This commit is contained in:
parent
10915c90d4
commit
b5737981aa
1 changed files with 8 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue