mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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
|
nt.templates
|
||||||
.get(*ord as usize)
|
.get(*ord as usize)
|
||||||
.map(|t| t.name.clone())
|
.map(|t| t.name.clone())
|
||||||
.unwrap_or_default()
|
.unwrap_or_else(|| format!("Card {}", *ord + 1))
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(", "),
|
.join(", "),
|
||||||
|
|
Loading…
Reference in a new issue