From 97d958f2978f5881e65d78643215599a93b66857 Mon Sep 17 00:00:00 2001 From: tianhai Date: Fri, 20 Dec 2024 15:31:40 +0800 Subject: [PATCH] pref: remove commented --- ui/src/pages/insightDetail/components/topologyMap/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/ui/src/pages/insightDetail/components/topologyMap/index.tsx b/ui/src/pages/insightDetail/components/topologyMap/index.tsx index 3cd8496f..cf48309c 100644 --- a/ui/src/pages/insightDetail/components/topologyMap/index.tsx +++ b/ui/src/pages/insightDetail/components/topologyMap/index.tsx @@ -161,9 +161,7 @@ const TopologyMap = ({ }: IProps) => { const navigate = useNavigate() const { t } = useTranslation() - // const graphRef = useRef() const ref = useRef(null) - // let graph: any | null = null const [graph, setGraph] = useState() const location = useLocation() const { from, type, query } = queryString.parse(location?.search) @@ -253,7 +251,6 @@ const TopologyMap = ({ })), } - // 延迟一帧执行渲染,确保 DOM 已经准备好 requestAnimationFrame(() => { if (graph && !graph.destroyed) { graph.data(processedData)