From 06852bbf0dc024bad7bccac7b665e0fa2e9bb037 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 27 Dec 2022 00:22:09 +0800 Subject: [PATCH] Fix the UI broken after removed a monitor --- src/mixins/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 7e3be52c2..378af06a5 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -590,7 +590,7 @@ export default { for (let monitorID in this.lastHeartbeatList) { let lastHeartBeat = this.lastHeartbeatList[monitorID]; - if (this.monitorList[monitorID].maintenance) { + if (this.monitorList[monitorID] && this.monitorList[monitorID].maintenance) { result[monitorID] = { text: this.$t("statusMaintenance"), color: "maintenance",