Skip to content

Commit

Permalink
ACUAgent: fix Sun avoidance "enabled" indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasself committed Dec 11, 2023
1 parent 4d5fa2a commit d2b65eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/panels/ACUAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -833,13 +833,14 @@
return this.getIndicator('monitor') !== true;
},
sunSafetyIndicators() {
let summary = this.ops.monitor_sun.session.data?.avoidance;
let data = this.ops.monitor_sun.session.data;
let summary = data?.avoidance;
if (!summary)
summary = {safety_unknown: true};
let active = {
'name': summary.escape_active ? 'enabled' : 'disabled',
'value': summary.escape_active ? 'good' : 'warning',
'name': data.active_avoidance ? 'enabled' : 'disabled',
'value': data.active_avoidance ? 'good' : 'warning',
};
let zone = null;
Expand Down

0 comments on commit d2b65eb

Please sign in to comment.