parsing datum itself rather than specific key of datum, let telemetry api do the work

This commit is contained in:
Jamie Vigliotta
2020-07-24 11:37:41 -07:00
parent 9124f4f566
commit de6eceb98b

View File

@ -228,8 +228,8 @@ export default {
subscribe() { subscribe() {
this.unsubscribe = this.openmct.telemetry this.unsubscribe = this.openmct.telemetry
.subscribe(this.domainObject, (datum) => { .subscribe(this.domainObject, (datum) => {
let parsedTimestamp = this.timeFormat.parse(datum[this.timeKey]), let parsedTimestamp = this.timeFormat.parse(datum);
bounds = this.openmct.time.bounds(); let bounds = this.openmct.time.bounds();
if(parsedTimestamp >= bounds.start && parsedTimestamp <= bounds.end) { if(parsedTimestamp >= bounds.start && parsedTimestamp <= bounds.end) {
this.updateHistory(datum); this.updateHistory(datum);