Skip to content

Commit

Permalink
fix: return a unique id in the line item list's trackBy function (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrueber authored Mar 21, 2023
1 parent 8a7fc5e commit 78d99d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class LineItemListComponent implements OnChanges {
}

trackByFn(_: number, item: Partial<LineItemView & OrderLineItem>) {
return item.productSKU;
return item.id;
}

/**
Expand Down

0 comments on commit 78d99d0

Please sign in to comment.