We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a75b44 commit b230849Copy full SHA for b230849
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