mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
show ordinal if card template missing
This commit is contained in:
parent
dd2edee3b3
commit
e6e9cb348e
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ impl Collection {
|
|||
nt.templates
|
||||
.get(*ord as usize)
|
||||
.map(|t| t.name.clone())
|
||||
.unwrap_or_default()
|
||||
.unwrap_or_else(|| format!("Card {}", *ord + 1))
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join(", "),
|
||||
|
|
Loading…
Reference in a new issue