parsing datum itself rather than specific key of datum, let telemetry api do the work (#3235)

This commit is contained in:
Jamie V 2020-07-24 13:34:26 -07:00 committed by GitHub
parent 9124f4f566
commit 7d51d9c1eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);