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
…nfiniflow#1975 (infiniflow#1978)

### What problem does this PR solve?

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

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Aug 16, 2024
1 parent 7e729de commit 6d818de
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 6d818de

Please sign in to comment.