diff --git a/web/src/components/indented-tree/indented-tree.tsx b/web/src/components/indented-tree/indented-tree.tsx index 66299727dc..547439459e 100644 --- a/web/src/components/indented-tree/indented-tree.tsx +++ b/web/src/components/indented-tree/indented-tree.tsx @@ -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(() => {