mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Fix crashes on using depends
This commit is contained in:
parent
38e4341815
commit
da22c85282
3 changed files with 8 additions and 5 deletions
|
@ -218,7 +218,10 @@ impl TaskReportTable {
|
|||
} else {
|
||||
let mut dt = vec![];
|
||||
for u in v {
|
||||
dt.push(tasks.iter().find(|t| t.uuid() == u).unwrap().id().unwrap());
|
||||
match tasks.iter().find(|t| t.uuid() == u) {
|
||||
Some(t) => dt.push(t.id().unwrap()),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
join(dt.iter().map(|i| i.to_string()), " ")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue