From b3373d9701dfd824e409bc64b6d661791c9aa083 Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Tue, 28 Sep 2021 22:11:30 +0800 Subject: [PATCH] fix: a problem that duplicated server would not show the info in observatory window --- gui/src/node.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/node.vue b/gui/src/node.vue index 069872d4..cb26abbd 100644 --- a/gui/src/node.vue +++ b/gui/src/node.vue @@ -767,7 +767,11 @@ export default { observatory(val) { for (const info of val.body) { this.connectedServerInfo.some(x => { - if (JSON.stringify(info.which) === JSON.stringify(x.which)) { + if ( + info.which._type === x.which._type && + info.which.id === x.which.id && + info.which.sub === x.which.sub + ) { for (const k in info) { if (k === "which" || !info.hasOwnProperty(k)) { continue;