Skip to content

Commit

Permalink
checking if the metadata exists before acting on it
Browse files Browse the repository at this point in the history
  • Loading branch information
jvigliotta committed Nov 5, 2024
1 parent 2010f2e commit 5bf8185
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/gauge/components/GaugeComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ export default {
},
request(domainObject = this.telemetryObject) {
this.metadata = this.openmct.telemetry.getMetadata(domainObject);
if (!this.metadata) {
return;
}
this.formats = this.openmct.telemetry.getFormatMap(this.metadata);
const LimitEvaluator = this.openmct.telemetry.getLimits(domainObject);
LimitEvaluator.limits().then(this.updateLimits);
Expand Down

0 comments on commit 5bf8185

Please sign in to comment.