UserTable: Remove sorting on licensed role (#90718)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
||||
Reference in New Issue
Block a user