Skip to content

Commit

Permalink
fix: ensure undefined values are removed in cleanup
Browse files Browse the repository at this point in the history
This fixes a crasher.
  • Loading branch information
aalemayhu committed Oct 23, 2024
1 parent 7374194 commit a3b259f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/parser/experimental/FallbackParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ class FallbackParser {
clean = false;
}

cards = Deck.CleanCards(cards);
if (cards.length > 0) {
decks.push(
new Deck(
deckName,
clean ? Deck.CleanCards(cards) : cards,
clean ? Deck.CleanCards(cards) : cards, // Do not clean csv files
'', // skip cover image
'', // skip style
get16DigitRandomId(),
Expand Down

0 comments on commit a3b259f

Please sign in to comment.