Skip to content

Commit

Permalink
fix(main): fixed no load rule when user choose all event and alert ru…
Browse files Browse the repository at this point in the history
…les #1188
  • Loading branch information
hitenkoku committed Oct 21, 2023
1 parent d76fa8f commit a2e2987
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,15 +1035,14 @@ impl App {
));
stored_static.output_option.as_mut().unwrap().min_level =
selections_status[selected_index].1 .1.into();
if selected_index <= 3 {
stored_static.include_status.extend(
selections_status[selected_index]
.1
.0
.iter()
.map(|x| x.to_owned().into()),
);
}

stored_static.include_status.extend(
selections_status[selected_index]
.1
.0
.iter()
.map(|x| x.to_owned().into()),
);

// If anything other than "4. All alert rules" or "5. All event and alert rules" was selected, ask questions about tags.
if selected_index < 3 {
Expand Down

0 comments on commit a2e2987

Please sign in to comment.