fix: ignore the sort_by when no data

This commit is contained in:
jialin
2025-12-22 11:57:57 +08:00
parent 45efda7f1d
commit e3b3f51e87
19 changed files with 35 additions and 33 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import { useIntl, useNavigate } from '@umijs/max';
import { useMemoizedFn } from 'ahooks';
import { ConfigProvider, Table, message } from 'antd';
import { useAtom } from 'jotai';
import _ from 'lodash';
import { useState } from 'react';
import NoResult from '../_components/no-result';
import PageBox from '../_components/page-box';
@@ -159,7 +160,7 @@ const Credentials: React.FC = () => {
loadend={dataSource.loadend}
dataSource={[]}
image={<IconFont type="icon-credential-outline" />}
filters={queryParams}
filters={_.omit(queryParams, ['sort_by'])}
noFoundText={intl.formatMessage({
id: 'noresult.credentials.nofound'
})}