Skip to content

Commit

Permalink
fixed linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyElias committed Dec 10, 2024
1 parent 37e89b1 commit 0e53bba
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/KTable/useSorting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,11 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor
return _.orderBy(
rows.value,
[row => getSortValue(row, defaultSort.value.index)],
[defaultSort.value.direction]
[defaultSort.value.direction],
);
}

return _.orderBy(
rows.value,
[row => getSortValue(row, sortKey.value)],
[sortOrder.value]
);
return _.orderBy(rows.value, [row => getSortValue(row, sortKey.value)], [sortOrder.value]);
});

/**
Expand Down Expand Up @@ -105,4 +101,4 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor
handleSort,
getAriaSort,
};
}
}

0 comments on commit 0e53bba

Please sign in to comment.