This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 96cfdc0  fix: groups (#464)
96cfdc0 is described below

commit 96cfdc00c0e51e7337d78fe83f9559323d5523a5
Author: Qiuxia Fan <[email protected]>
AuthorDate: Fri Apr 9 09:00:20 2021 +0800

    fix: groups (#464)
---
 src/views/components/topology/topo-services.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/components/topology/topo-services.vue 
b/src/views/components/topology/topo-services.vue
index a477891..f205be5 100644
--- a/src/views/components/topology/topo-services.vue
+++ b/src/views/components/topology/topo-services.vue
@@ -52,7 +52,7 @@ limitations under the License. -->
         (json: Array<{ key: string; label: string; group: string }>) => {
           const groups = [] as string[];
           for (const g of json) {
-            if (!groups.includes(g.group)) {
+            if (g.group && !groups.includes(g.group)) {
               groups.push(g.group);
             }
           }

Reply via email to