From 0e53bba823a9fd8d184298dee60514a93d9af556 Mon Sep 17 00:00:00 2001 From: callmeroot Date: Tue, 10 Dec 2024 13:58:45 +0530 Subject: [PATCH] fixed linting error --- lib/KTable/useSorting/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/KTable/useSorting/index.js b/lib/KTable/useSorting/index.js index b228b17b2..523bcb8fa 100644 --- a/lib/KTable/useSorting/index.js +++ b/lib/KTable/useSorting/index.js @@ -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]); }); /** @@ -105,4 +101,4 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor handleSort, getAriaSort, }; -} \ No newline at end of file +}