Skip to content

Commit

Permalink
pref: remove commented
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-tian committed Dec 20, 2024
1 parent d74315a commit 97d958f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ui/src/pages/insightDetail/components/topologyMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ const TopologyMap = ({
}: IProps) => {
const navigate = useNavigate()
const { t } = useTranslation()
// const graphRef = useRef<any>()
const ref = useRef<HTMLDivElement>(null)
// let graph: any | null = null
const [graph, setGraph] = useState<any>()
const location = useLocation()
const { from, type, query } = queryString.parse(location?.search)
Expand Down Expand Up @@ -253,7 +251,6 @@ const TopologyMap = ({
})),
}

// 延迟一帧执行渲染,确保 DOM 已经准备好
requestAnimationFrame(() => {
if (graph && !graph.destroyed) {
graph.data(processedData)
Expand Down

0 comments on commit 97d958f

Please sign in to comment.