From 38ac0f350609577783e835e34f2fc5204a9c36b2 Mon Sep 17 00:00:00 2001 From: Gabriel MABILLE Date: Mon, 22 Jul 2024 11:41:57 +0200 Subject: [PATCH] UserTable: Remove sorting on licensed role (#90718) --- public/app/features/admin/Users/UsersTable.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/app/features/admin/Users/UsersTable.tsx b/public/app/features/admin/Users/UsersTable.tsx index 5ee4f57509e..1fcc84276a6 100644 --- a/public/app/features/admin/Users/UsersTable.tsx +++ b/public/app/features/admin/Users/UsersTable.tsx @@ -1,5 +1,4 @@ import { useMemo } from 'react'; -import { UseTableRowProps } from 'react-table'; import { Avatar, @@ -91,8 +90,6 @@ export const UsersTable = ({ ); }, - sortType: (a: UseTableRowProps, b: UseTableRowProps) => - (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, }, ] : []),