From f941c6ea74a486e765e5282c1b6f145518a69b9e Mon Sep 17 00:00:00 2001 From: yxh01132861 Date: Tue, 23 Jan 2024 10:53:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=B6=E9=97=B4=E8=BD=B4=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/widgets/TimeLine/Component/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx b/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx index bfea354c..7964935b 100644 --- a/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx +++ b/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx @@ -49,7 +49,7 @@ const TimeLineControl: React.FC = (props) => { // 获取数据源 const [dataset] = useDataset(datasetId, { filter: dataSetFilter }); - const dateFilterNodeRef = useRef(null); + const dateFilterNodeRef = useRef(); // 数据源和数据字段配置发生更新时,如果有配置筛选条件,需要清空筛选条件 useEffect(() => { @@ -122,7 +122,7 @@ const TimeLineControl: React.FC = (props) => { const delFilterNode = () => { if (dateFilterNodeRef.current) { removeFilterNode(dateFilterNodeRef.current); - dateFilterNodeRef.current = null; + dateFilterNodeRef.current = undefined; } };