diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 729eb679a..bc43768a4 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -119,6 +119,8 @@ function loadGroups(data) { // Load nodes onclick $('#groups').bind('select_node.jstree', function(event, data) { + // If there are subgroups, remove them + data.rslt.obj.children('ul').remove(); var thisGroup = jQuery.trim(data.rslt.obj.text()); if (thisGroup) { // Clear nodes division