You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/02/10 12:56:20 UTC

[skywalking-booster-ui] branch main updated: fix: remove duplicate query message (#231)

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

wusheng 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 4613149  fix: remove duplicate query message (#231)
4613149 is described below

commit 4613149759105dd839b555dbabc020ff7b7d4345
Author: Fine0830 <fa...@gmail.com>
AuthorDate: Fri Feb 10 20:56:15 2023 +0800

    fix: remove duplicate query message (#231)
---
 src/store/modules/dashboard.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts
index eee2b37..52dc62c 100644
--- a/src/store/modules/dashboard.ts
+++ b/src/store/modules/dashboard.ts
@@ -423,13 +423,15 @@ export const dashboardStore = defineStore({
         res = await graphql.query("addNewTemplate").params({ setting: { configuration: JSON.stringify(c) } });
 
         json = res.data.data.addTemplate;
+        if (!json.status) {
+          ElMessage.error(json.message);
+        }
       }
       if (res.data.errors || res.errors) {
         ElMessage.error(res.data.errors);
         return res.data;
       }
       if (!json.status) {
-        ElMessage.error(json.message);
         return json;
       }
       if (!this.currentDashboard.id) {