Skip to content

Commit

Permalink
fix: Opening file whose type is Knowledge Graph appear error with tsx i…
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Aug 16, 2024
1 parent 7bdd5a4 commit ffa8af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/indented-tree/indented-tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ const IndentedTree = ({ data, show }: IProps) => {

graphRef.current = graph;

graph.setData(treeToGraphData(data));
graph?.setData(treeToGraphData(data));

graph.render();
graph?.render();
}, []);

useEffect(() => {
Expand Down

0 comments on commit ffa8af3

Please sign in to comment.