mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +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() {
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user