From 7ceda37e15fff052f50d9c8121aee2109d3465be Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 13 Dec 2023 09:52:36 -0500 Subject: [PATCH] Fix #5591: TreeTable remove 'custom' sort need (#5595) --- components/lib/treetable/TreeTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/treetable/TreeTable.js b/components/lib/treetable/TreeTable.js index 60b17e440e..d3c1780271 100644 --- a/components/lib/treetable/TreeTable.js +++ b/components/lib/treetable/TreeTable.js @@ -213,7 +213,7 @@ export const TreeTable = React.forwardRef((inProps, ref) => { const sortNodes = (data) => { let value = [...data]; - if (columnSortable.current && columnSortable.current === 'custom' && columnSortFunction.current) { + if (columnSortable.current && columnSortFunction.current) { value = columnSortFunction.current({ data, field: getSortField(),