Skip to content

Commit

Permalink
Reset worker object everytime prior reading regular updates from webs…
Browse files Browse the repository at this point in the history
…ocket (#9)
  • Loading branch information
ajiprabowo authored Apr 22, 2021
1 parent 17e25d3 commit 277cc9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 277cc9d

Please # to comment.