From 9eaefb2fa5de10012040d00b722648a0459f711c Mon Sep 17 00:00:00 2001 From: zzyangh <799463087@qq.com> Date: Fri, 8 Dec 2023 10:32:02 +0800 Subject: [PATCH] fix: sorter filed --- src/page/SQLManagement/SQLPanel/index.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/page/SQLManagement/SQLPanel/index.tsx b/src/page/SQLManagement/SQLPanel/index.tsx index e0a809d0..79397729 100644 --- a/src/page/SQLManagement/SQLPanel/index.tsx +++ b/src/page/SQLManagement/SQLPanel/index.tsx @@ -85,15 +85,7 @@ const SQLPanel: React.FC = () => { return undefined; } - if (sorterInfo?.field === 'first_appear_time') { - return GetSqlManageListV2SortFieldEnum.first_appear_timestamp; - } - if (sorterInfo?.field === 'last_appear_time') { - return GetSqlManageListV2SortFieldEnum.last_receive_timestamp; - } - if (sorterInfo?.field === 'appear_num') { - return GetSqlManageListV2SortFieldEnum.fp_count; - } + return sorterInfo?.field as GetSqlManageListV2SortFieldEnum; }; const getSortOrder = () => { if (Array.isArray(sorterInfo)) {