From 75da299a056e822dd2423c5d5e2f58de8d9185c2 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 30 May 2024 13:46:45 +0300 Subject: [PATCH] Fixed error --- components/lib/treetable/style/TreeTableStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/treetable/style/TreeTableStyle.js b/components/lib/treetable/style/TreeTableStyle.js index 681f2f460..e6e66894c 100644 --- a/components/lib/treetable/style/TreeTableStyle.js +++ b/components/lib/treetable/style/TreeTableStyle.js @@ -456,7 +456,7 @@ const classes = { { 'p-treetable-sortable-column': instance.columnProp('sortable'), 'p-treetable-resizable-column': props.resizableColumns, - 'p-treetable-column-sorted': instance.isColumnSorted(), + 'p-treetable-column-sorted': context?.sorted, 'p-treetable-frozen-column': instance.columnProp('frozen') } ],