Update condition sets in fixed timespan mode if the datum's timestamp is valid (#3852)

This commit is contained in:
Shefali Joshi
2021-05-11 19:25:56 -07:00
committed by GitHub
parent 3ca133c782
commit dacec48aec
7 changed files with 51 additions and 12 deletions

View File

@ -269,7 +269,12 @@ export default {
},
subscribeToObject() {
this.subscription = this.openmct.telemetry.subscribe(this.domainObject, function (datum) {
if (this.openmct.time.clock() !== undefined) {
const key = this.openmct.time.timeSystem().key;
const datumTimeStamp = datum[key];
if (this.openmct.time.clock() !== undefined
|| (datumTimeStamp
&& (this.openmct.time.bounds().end >= datumTimeStamp))
) {
this.updateView(datum);
}
}.bind(this));