diff --git a/rslib/src/decks/mod.rs b/rslib/src/decks/mod.rs index df16a066e..f0e80a4d7 100644 --- a/rslib/src/decks/mod.rs +++ b/rslib/src/decks/mod.rs @@ -468,7 +468,7 @@ impl Collection { pub fn remove_decks_and_child_decks(&mut self, dids: &[DeckID]) -> Result { let mut card_count = 0; - self.transact(None, |col| { + self.transact(Some(UndoableOpKind::RemoveDeck), |col| { let usn = col.usn()?; for did in dids { if let Some(deck) = col.storage.get_deck(*did)? {