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

qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new 4561e2e  fix: remove All from the endpoints selector from profiling
4561e2e is described below

commit 4561e2e37488cee2e6c1e537099074830c559358
Author: Fine0830 <[email protected]>
AuthorDate: Mon Sep 19 14:05:09 2022 +0800

    fix: remove All from the endpoints selector from profiling
---
 src/router/general.ts        | 2 +-
 src/store/modules/profile.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/router/general.ts b/src/router/general.ts
index ebf76df..adef59d 100644
--- a/src/router/general.ts
+++ b/src/router/general.ts
@@ -58,7 +58,7 @@ export const routesGen: Array<RouteRecordRaw> = [
         },
         component: () =>
           import(/* webpackChunkName: "layer" */ "@/views/Layer.vue"),
-      },      
+      },
       {
         path: "/database/tab/:activeTabIndex",
         name: "VirtualDatabaseActiveTabIndex",
diff --git a/src/store/modules/profile.ts b/src/store/modules/profile.ts
index ef9e361..4f5d51c 100644
--- a/src/store/modules/profile.ts
+++ b/src/store/modules/profile.ts
@@ -83,7 +83,7 @@ export const profileStore = defineStore({
       if (res.data.errors) {
         return res.data;
       }
-      this.endpoints = [{ value: "", label: "All" }, ...res.data.data.pods];
+      this.endpoints = res.data.data.pods || [];
       return res.data;
     },
     async getTaskEndpoints(serviceId: string, keyword?: string) {

Reply via email to