From e53d40c588c253aca5154f12c2b77904ab94c464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 4 Oct 2022 10:41:43 +0100 Subject: [PATCH] fix: strategy name sort (#2130) --- .../component/strategies/StrategiesList/StrategiesList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx index b942c0ace8..7d4605fb14 100644 --- a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx +++ b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx @@ -175,8 +175,9 @@ export const StrategiesList = () => { disableGlobalFilter: true, }, { + id: 'Name', Header: 'Name', - accessor: 'name', + accessor: (row: any) => formatStrategyName(row.name), width: '90%', Cell: ({ row: { @@ -247,7 +248,7 @@ export const StrategiesList = () => { const initialState = useMemo( () => ({ - sortBy: [{ id: 'name', desc: false }], + sortBy: [{ id: 'Name', desc: false }], hiddenColumns: ['description', 'sortOrder'], }), []