Skip to content

Commit

Permalink
fix: sorter filed
Browse files Browse the repository at this point in the history
  • Loading branch information
zzyangh committed Dec 8, 2023
1 parent 392e171 commit 9eaefb2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/page/SQLManagement/SQLPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check warning on line 88 in src/page/SQLManagement/SQLPanel/index.tsx

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
};

Check warning on line 89 in src/page/SQLManagement/SQLPanel/index.tsx

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
const getSortOrder = () => {
if (Array.isArray(sorterInfo)) {
Expand Down

0 comments on commit 9eaefb2

Please sign in to comment.