Skip to content

Commit

Permalink
Filter null importantAffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Mar 17, 2020
1 parent 55f8588 commit 5bda75b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Lurker.UI/ViewModels/ItemOverlayViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public ItemOverlayViewModel(PoeItem item, Action closeAction)
/// <summary>
/// Gets the important affixed.
/// </summary>
public IEnumerable<AffixViewModel> ImportantAffixes => this._item.ImportantAffixes.Select(i => new AffixViewModel(i));
public IEnumerable<AffixViewModel> ImportantAffixes => this._item.ImportantAffixes.Where(i => i != null).Select(i => new AffixViewModel(i));

#endregion

Expand Down
2 changes: 1 addition & 1 deletion src/Lurker/Models/Gloves.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Gloves(string value)
/// </summary>
public override IEnumerable<Affix> ImportantAffixes => new Affix[]
{
AffixService.AttackSpeedAffix(this),
AffixService.AttackSpeedAffix(this)
};

#endregion
Expand Down

0 comments on commit 5bda75b

Please sign in to comment.