1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: strategy name sort (#2130)

This commit is contained in:
Nuno Góis 2022-10-04 10:41:43 +01:00 committed by GitHub
parent 528748e757
commit e53d40c588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'],
}),
[]