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() {
this.unsubscribe = this.openmct.telemetry
.subscribe(this.domainObject, (datum) => {
let parsedTimestamp = this.timeFormat.parse(datum[this.timeKey]),
bounds = this.openmct.time.bounds();
let parsedTimestamp = this.timeFormat.parse(datum);
let bounds = this.openmct.time.bounds();
if(parsedTimestamp >= bounds.start && parsedTimestamp <= bounds.end) {
this.updateHistory(datum);