diff --git a/rslib/src/decks/undo.rs b/rslib/src/decks/undo.rs index e4fe37749..bd826becf 100644 --- a/rslib/src/decks/undo.rs +++ b/rslib/src/decks/undo.rs @@ -78,6 +78,7 @@ impl Collection { } fn remove_deck_undoable(&mut self, deck: Deck) -> Result<()> { + self.state.deck_cache.clear(); self.storage.remove_deck(deck.id)?; self.save_undo(UndoableDeckChange::Removed(Box::new(deck))); Ok(())