mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
parsing datum itself rather than specific key of datum, let telemetry api do the work (#3235)
This commit is contained in:
parent
9124f4f566
commit
7d51d9c1eb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user