From 277cc9d83fc2c36bb5ed3cef9e4863de7613962f Mon Sep 17 00:00:00 2001 From: ajiprabowo Date: Thu, 22 Apr 2021 07:46:30 +0700 Subject: [PATCH] Reset worker object everytime prior reading regular updates from websocket (#9) --- web/src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/App.vue b/web/src/App.vue index 6f0e4d3..31d5764 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -97,6 +97,10 @@ } } } else if (msg.kind === "WorkersInfo") { + + //reset workers object and start reading from server again + _this.workers = {}; + for (let key in obj) { const worker = obj[key]; if ("name" in worker && "metrics" in worker) {