Skip to content

Commit

Permalink
Fix attributeComparator default/primary attribute valueType
Browse files Browse the repository at this point in the history
  • Loading branch information
dougy83 authored and yaqwsx committed Jul 28, 2024
1 parent 7d2d0df commit f1c84f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/componentTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function attributeComparator(x, y, valueType) {
if (y === undefined)
return -1;
valueType ??= x.primary;
valueType ??= x.default;
let comparator = quantityComparator(getQuantity(x.values[valueType]));
return comparator(
getValue(x.values[valueType]),
Expand Down

0 comments on commit f1c84f3

Please sign in to comment.