Disable role sorting in people list
The role order field is not supported on the GraphQL profile ordering path, which makes role-based sorting fail at runtime. Keep the role column visible for users who can manage roles, but render it as a regular table header instead of a sortable one. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Bryan Frimin
parent
8b6e9e420a
commit
dd547471e6
@@ -104,7 +104,7 @@ export function PeopleList(props: {
|
||||
<SortableTh field="FULL_NAME" onOrderChange={handleOrderChange}>{__("Name")}</SortableTh>
|
||||
<SortableTh field="STATE">{__("Status")}</SortableTh>
|
||||
<SortableTh field="EMAIL_ADDRESS" onOrderChange={handleOrderChange}>{__("Email")}</SortableTh>
|
||||
{canManageRoles && <SortableTh field="ROLE" onOrderChange={handleOrderChange}>{__("Role")}</SortableTh>}
|
||||
{canManageRoles && <Th>{__("Role")}</Th>}
|
||||
<SortableTh field="CREATED_AT" onOrderChange={handleOrderChange}>{__("Created on")}</SortableTh>
|
||||
<Th></Th>
|
||||
</Tr>
|
||||
|
||||
Reference in New Issue
Block a user