Skip to content

Commit bd2fc6d

Browse files
committed
Fix checkbox column sorting
Fixes #275
1 parent fecad4b commit bd2fc6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InteractiveHtmlBom/web/ibom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ function populateBomHeader(placeHolderColumn = null, placeHolderElements = null)
454454

455455
var checkboxCompareClosure = function (checkbox) {
456456
return (a, b) => {
457-
var stateA = getCheckboxState(checkbox, a[3]);
458-
var stateB = getCheckboxState(checkbox, b[3]);
457+
var stateA = getCheckboxState(checkbox, a);
458+
var stateB = getCheckboxState(checkbox, b);
459459
if (stateA > stateB) return -1;
460460
if (stateA < stateB) return 1;
461461
return 0;

0 commit comments

Comments
 (0)