Define metadata when component is created. (#2237)

This commit is contained in:
Pegah Sarram 2018-12-07 10:34:31 -08:00 committed by Pete Richards
parent 5928a102a6
commit 981392ea07

View File

@ -164,9 +164,11 @@
} }
} }
}, },
created() {
this.metadata = this.openmct.telemetry.getMetadata(this.item.domainObject);
},
mounted() { mounted() {
this.limitEvaluator = this.openmct.telemetry.limitEvaluator(this.item.domainObject); this.limitEvaluator = this.openmct.telemetry.limitEvaluator(this.item.domainObject);
this.metadata = this.openmct.telemetry.getMetadata(this.item.domainObject);
this.formats = this.openmct.telemetry.getFormatMap(this.metadata); this.formats = this.openmct.telemetry.getFormatMap(this.metadata);
this.requestHistoricalData(); this.requestHistoricalData();