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 d183f41 commit fa15d7dCopy full SHA for fa15d7d
src/main/java/com/flowingcode/vaadin/addons/orgchart/OrgChart.java
@@ -570,6 +570,11 @@ public void removeNodes(Integer nodeId) {
570
parentNode.setChildren(currentChildren);
571
}
572
573
+ // If removing the root, clear internal root reference
574
+ if (this.orgChartItem != null && nodeId.equals(this.orgChartItem.getId())) {
575
+ this.orgChartItem = null;
576
+ }
577
+
578
// Update the visual representation
579
this.getElement().executeJs("this.removeNodes($0)", nodeId);
580
0 commit comments