Skip to content

修改筛选条件后,表格切换页码时的筛选条件未同步修改的问题 #2198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
修改筛选条件后,表格切换页码时的筛选条件未同步修改的问题
ElianChen committed Jun 20, 2023
commit 60815c73df40a9722e3386cb9010a10ccd1bf476
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ import {
tablePagingAndSortEventListener,
} from 'app/utils/ChartEventListenerHelper';
import { getChartDrillOption } from 'app/utils/internalChartHelper';
import { FC, memo, useCallback, useMemo, useRef, useState } from 'react';
import { FC, memo, useCallback, useMemo, useRef, useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import styled from 'styled-components/macro';
import { isEmptyArray } from 'utils/object';
@@ -130,9 +130,12 @@ const ChartPreviewBoardForShare: FC<{
filterSearchParams,
}),
);
registerChartEvents(chart);
});

useEffect(() => {
registerChartEvents(chart);
}, [chartPreview,chart]);

const buildDrillThroughEventParams = useCallback(
(
clickEventParams,