fix: Opening file whose type is Knowledge Graph appear error with tsx #1975 (#1978)

### What problem does this PR solve?

fix: Opening file whose type is Knowledge Graph appear error with tsx
#1975
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-08-16 14:35:18 +08:00 committed by GitHub
parent 644f68de97
commit e5caa702f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,9 +369,9 @@ const IndentedTree = ({ data, show }: IProps) => {
graphRef.current = graph; graphRef.current = graph;
graph.setData(treeToGraphData(data)); graph?.setData(treeToGraphData(data));
graph.render(); graph?.render();
}, []); }, []);
useEffect(() => { useEffect(() => {