mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 10:45:57 +08:00
### 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
@ -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…
x
Reference in New Issue
Block a user