浏览代码

Merge branch 'bugfix_10/9'

ziwen 1 年之前
父节点
当前提交
29d5544657
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      controllers/data_manage/edb_info.go

+ 3 - 2
controllers/data_manage/edb_info.go

@@ -4328,10 +4328,11 @@ func (this *EdbInfoController) EdbChartAdminList() {
 		}
 	}
 
-	for _, groupList := range depList {
+	for i, groupList := range depList {
 		for k, v := range groupList.ChildrenList {
 			if v.RealName == "" {
-				groupList.ChildrenList = append(groupList.ChildrenList[:k], groupList.ChildrenList[k+1:]...)
+				newChildrenList := append(groupList.ChildrenList[:k], groupList.ChildrenList[k+1:]...)
+				depList[i].ChildrenList = newChildrenList
 			}
 		}
 	}