Fixed the controller UI from hanging after estop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user