Skip to content

Commit

Permalink
fix: Opening file whose type is Knowledge Graph appear error with tsx #…
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
cike8899 authored Aug 16, 2024
1 parent 644f68d commit e5caa70
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 e5caa70

Please sign in to comment.