Skip to content

Commit

Permalink
added check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyElias committed Dec 16, 2024
1 parent b2ff594 commit b8456de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/KTable/useSorting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor
*/
const getSortValue = (row, index) => {
const value = row[index];
if (typeof value === 'string') {
if (typeof value === 'string' && value != null) {
return value.toString().toLocaleLowerCase();
}
return value;
Expand Down

0 comments on commit b8456de

Please sign in to comment.