mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix infinite loop on card answer when parent is missing deck
This commit is contained in:
parent
edaabee942
commit
07989afa38
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ impl SqliteStorage {
|
|||
if let Some(parent_did) = self.get_deck_id(parent_name)? {
|
||||
let parent = self.get_deck(parent_did)?.unwrap();
|
||||
decks.push(parent);
|
||||
} else {
|
||||
// missing parent
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue