We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7492c80 commit be0ebcbCopy full SHA for be0ebcb
1 file changed
react/src/lib/components/GroupTree/components/GroupTreeViewer.tsx
@@ -34,6 +34,12 @@ const GroupTreeViewer: React.FC = () => {
34
(state: GroupTreeState) => state.ui.currentFlowRate
35
);
36
useEffect(() => {
37
+ // Clear possible elements added from earlier updates.
38
+ const node = document.getElementById("grouptree_tree");
39
+ if (node) {
40
+ node.innerHTML = "";
41
+ }
42
+
43
renderer.current = new GroupTree(
44
"#grouptree_tree",
45
cloneDeep(data),
0 commit comments