Skip to content

Commit ccd339e

Browse files
fix: pagination effect (#7267)
1 parent d54470c commit ccd339e

File tree

1 file changed

+4
-5
lines changed
  • clients/admin-ui/src/features/data-discovery-and-detection/action-center

1 file changed

+4
-5
lines changed

clients/admin-ui/src/features/data-discovery-and-detection/action-center/MonitorList.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ const MonitorList = () => {
7575
size: pageSize,
7676
});
7777

78-
useEffect(() => {
79-
resetPagination();
80-
// eslint-disable-next-line react-hooks/exhaustive-deps
81-
}, [requestData]);
82-
8378
useEffect(() => {
8479
if (isError) {
8580
toast({
@@ -103,6 +98,10 @@ const MonitorList = () => {
10398
<Flex className="h-[calc(100%-48px)] overflow-hidden" gap="middle" vertical>
10499
<MonitorListSearchForm
105100
{...formProps}
101+
onFieldsChange={(...args) => {
102+
resetPagination();
103+
formProps.onFieldsChange(...args);
104+
}}
106105
availableMonitorTypes={availableMonitorTypes}
107106
/>
108107
<List

0 commit comments

Comments
 (0)