balibabu
commited on
Commit
·
6bf835b
1
Parent(s):
d4df4f1
fix: Opening file whose type is Knowledge Graph appear error with tsx #1975 (#1978)
Browse files### 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)
web/src/components/indented-tree/indented-tree.tsx
CHANGED
@@ -369,9 +369,9 @@ const IndentedTree = ({ data, show }: IProps) => {
|
|
369 |
|
370 |
graphRef.current = graph;
|
371 |
|
372 |
-
graph
|
373 |
|
374 |
-
graph
|
375 |
}, []);
|
376 |
|
377 |
useEffect(() => {
|
|
|
369 |
|
370 |
graphRef.current = graph;
|
371 |
|
372 |
+
graph?.setData(treeToGraphData(data));
|
373 |
|
374 |
+
graph?.render();
|
375 |
}, []);
|
376 |
|
377 |
useEffect(() => {
|