Skip to content

Commit

Permalink
fix: GridCardImages crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscechetto committed Nov 7, 2024
1 parent ee6cace commit 1ec0ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/Controls/GridCardImages.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async void SetCardIdsFromCards(IEnumerable<Hearthstone.Card>? cards, int?

CardsCollectionChanged(maxGridHeight);

foreach (var cardWithImage in Cards)
foreach (var cardWithImage in Cards.ToList())
{
if(cardWithImage.Card == null) continue;

Expand Down

0 comments on commit 1ec0ee2

Please sign in to comment.