Fixed the controller UI from hanging after estop

This commit is contained in:
David Carley
2022-09-13 00:24:31 +00:00
parent fcc4ed8b03
commit 1a44fe3c8e
4 changed files with 17 additions and 7 deletions

View File

@@ -327,9 +327,12 @@ module.exports = new Vue({
return;
}
if ("log" in e.data) {
if (e.data.log.msg !== "Switch not found") {
this.$broadcast("log", e.data.log);
if (e.data.log && e.data.log.msg !== "Switch not found") {
this.$broadcast("log", e.data.log);
if (Object.keys(e.data).length === 1) {
// If there's only log data, we're done
return;
}
}