From b8456dedb69e553e0dd91561da63f2c3e33c39bf Mon Sep 17 00:00:00 2001 From: callmeroot Date: Mon, 16 Dec 2024 12:31:53 +0530 Subject: [PATCH] added check for null --- lib/KTable/useSorting/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/KTable/useSorting/index.js b/lib/KTable/useSorting/index.js index 523bcb8fa..5893003b5 100644 --- a/lib/KTable/useSorting/index.js +++ b/lib/KTable/useSorting/index.js @@ -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;