UserTable: Remove sorting on licensed role (#90718)

This commit is contained in:
Gabriel MABILLE
2024-07-22 12:41:57 +03:00
committed by GitHub
parent a18f72e415
commit 38ac0f3506
@@ -1,5 +1,4 @@
import { useMemo } from 'react';
import { UseTableRowProps } from 'react-table';
import {
Avatar,
@@ -91,8 +90,6 @@ export const UsersTable = ({
</Stack>
);
},
sortType: (a: UseTableRowProps<UserDTO>, b: UseTableRowProps<UserDTO>) =>
(a.original.orgs?.length || 0) - (b.original.orgs?.length || 0),
},
]
: []),
@@ -113,8 +110,6 @@ export const UsersTable = ({
value
);
},
// Needs the assertion here, the types are not inferred correctly due to the conditional assignment
sortType: 'string' as const,
},
]
: []),