From feb44e74d4af00d8319a9fb843882709a5029e68 Mon Sep 17 00:00:00 2001 From: leitao <1225214744@qq.com> Date: Sat, 29 Dec 2018 14:29:17 +0800 Subject: [PATCH] do not remove the first node(#339) (#355) Do not remove the first node --- .../taobao/csp/sentinel/dashboard/view/vo/ResourceVo.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/view/vo/ResourceVo.java b/sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/view/vo/ResourceVo.java index bbba8b47..1870e6aa 100755 --- a/sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/view/vo/ResourceVo.java +++ b/sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/view/vo/ResourceVo.java @@ -52,12 +52,7 @@ public class ResourceVo { return null; } List list = new ArrayList<>(); - boolean isFirst = true; for (NodeVo nodeVo : nodeVos) { - if (isFirst) { - isFirst = false; - continue; - } ResourceVo vo = new ResourceVo(); vo.parentTtId = nodeVo.getParentId(); vo.ttId = nodeVo.getId();