Skip to content

Commit

Permalink
fix(services): fix dashboard sometimes crashing when reloading servic…
Browse files Browse the repository at this point in the history
…es page
  • Loading branch information
ravenclaw900 committed May 1, 2022
1 parent c00c5e2 commit 657f5e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/backend/src/systemdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ pub fn services() -> Vec<shared::ServiceData> {
}
}
} else {
let (el1, el2) = element.split_once('\t').unwrap();
let (el1, el2) = match element.split_once('\t') {
Some(els) => els,
None => continue,
};
name = el1.trim().to_string();
match el2.split_once(" since ") {
Some(statusdate) => {
Expand Down

0 comments on commit 657f5e9

Please sign in to comment.