### 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:
parent
644f68de97
commit
e5caa702f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue