Skip to content

Commit

Permalink
fix: 时间轴筛选问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
yxh01132861 committed Jan 23, 2024
1 parent 142e02c commit f941c6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const TimeLineControl: React.FC<TimeLineControlType> = (props) => {

// 获取数据源
const [dataset] = useDataset(datasetId, { filter: dataSetFilter });
const dateFilterNodeRef = useRef(null);
const dateFilterNodeRef = useRef<string>();

// 数据源和数据字段配置发生更新时,如果有配置筛选条件,需要清空筛选条件
useEffect(() => {
Expand Down Expand Up @@ -122,7 +122,7 @@ const TimeLineControl: React.FC<TimeLineControlType> = (props) => {
const delFilterNode = () => {
if (dateFilterNodeRef.current) {
removeFilterNode(dateFilterNodeRef.current);
dateFilterNodeRef.current = null;
dateFilterNodeRef.current = undefined;
}
};

Expand Down

0 comments on commit f941c6e

Please sign in to comment.