From 440b53b035bf4d719a78874b8d3bc7a4958ae754 Mon Sep 17 00:00:00 2001 From: Dmytro-Melnyshyn Date: Wed, 11 Sep 2024 12:20:12 +0300 Subject: [PATCH] STSMACOM-849: Pass sortable columns to MCL. --- lib/SearchAndSort/SearchAndSort.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SearchAndSort/SearchAndSort.js b/lib/SearchAndSort/SearchAndSort.js index b64090593..a0fa1853f 100644 --- a/lib/SearchAndSort/SearchAndSort.js +++ b/lib/SearchAndSort/SearchAndSort.js @@ -1313,6 +1313,7 @@ class SearchAndSort extends React.Component { resultsOnResetMarkedPosition, resultRowFormatter, showSortIndicator, + sortableColumns, hasRowClickHandlers, hidePageIndices, pagingCanGoPrevious, @@ -1356,6 +1357,7 @@ class SearchAndSort extends React.Component { formatter={resultsFormatter} visibleColumns={visibleColumnsProp || visibleColumns} showSortIndicator={showSortIndicator} + sortableFields={sortableColumns} sortOrder={sortOrder.replace(/^-/, '').replace(/,.*/, '')} sortDirection={sortOrder.startsWith('-') ? 'descending' : 'ascending'} isEmptyMessage={message}