TonyKang %!s(int64=5) %!d(string=hai) anos
pai
achega
a240d8c062
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      app/view/report/index.ejs

+ 1 - 2
app/view/report/index.ejs

@@ -223,8 +223,7 @@
 
     buildStageSelection();
 
-    const ORG_TOP_TREE_NODES = [];
-    Object.assign(ORG_TOP_TREE_NODES, TOP_TREE_NODES);
+    const ORG_TOP_TREE_NODES = JSON.parse(JSON.stringify(TOP_TREE_NODES));
     for (let item of TOP_TREE_NODES) {
         item.items = JSON.parse(item.items);
         if (item.items && item.items.length > 0) {