From bbf0cb1101b71321c4417d32be17bdd6d5b21d32 Mon Sep 17 00:00:00 2001 From: Ian Liu Date: Fri, 20 Dec 2024 12:20:17 -0800 Subject: [PATCH] Add email for soryBy param in request. --- frontend/src/components/ManagePermissionsTable/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ManagePermissionsTable/utils.ts b/frontend/src/components/ManagePermissionsTable/utils.ts index 46c1adbab..9b084fad5 100644 --- a/frontend/src/components/ManagePermissionsTable/utils.ts +++ b/frontend/src/components/ManagePermissionsTable/utils.ts @@ -1,6 +1,7 @@ import { ManagePermissionsTableEnum } from "@/types/ManagePermissionsTypes"; import type { PermissionNotificationType } from "@/types/NotificationTypes"; import { Severity } from "@/types/NotificationTypes"; +import type { PaginationType } from "@/types/PaginationTypes"; import { formatAxiosError } from "@/utils/ApiUtils"; import { formatForestClientDisplayName } from "@/utils/ForestClientUtils"; import { formatUserNameAndId } from "@/utils/UserUtils"; @@ -14,7 +15,6 @@ import { UserRoleSortByEnum, type FamApplicationUserRoleAssignmentGetSchema, } from "fam-app-acsctl-api/model"; -import type { PaginationType } from "@/types/PaginationTypes"; export type ConfirmTextType = { role: string; @@ -302,6 +302,8 @@ export const sortFieldToEnum = ( return UserRoleSortByEnum.UserTypeCode; case "user.first_name": return UserRoleSortByEnum.FullName; + case "user.email": + return UserRoleSortByEnum.Email; case "role.forest_client.forest_client_number": return UserRoleSortByEnum.ForestClientNumber; case "role.display_name":