mirror of
https://github.com/nasa/openmct.git
synced 2025-01-22 04:18:05 +00:00
was using a deleted domain object
This commit is contained in:
parent
e03683e11a
commit
c0ccc05361
@ -115,15 +115,14 @@ define([
|
||||
const keystring = Object.keys(this.telemetryCollections)[0];
|
||||
const lastDatum = this.telemetryCollections[keystring].getLastTelemetryDatum();
|
||||
const timestampKey = this.openmct.time.timeSystem().key;
|
||||
const metadata = this.openmct.telemetry.getMetadata(
|
||||
this.telemetryCollections[keystring].domainObject
|
||||
);
|
||||
const domainObject = this.telemetryCollections[keystring].domainObject;
|
||||
const metadata = this.openmct.telemetry.getMetadata(domainObject);
|
||||
const formats = this.openmct.telemetry.getFormatMap(metadata);
|
||||
const lastTimestamp = formats[timestampKey].parse(lastDatum);
|
||||
|
||||
// clear old collection, rerequest from last timestamp
|
||||
this.removeTelemetryObject(this.telemetryCollections[keystring].domainObject.identifier);
|
||||
this.addTelemetryObject(this.telemetryCollections[keystring].domainObject, lastTimestamp);
|
||||
this.removeTelemetryObject(domainObject.identifier);
|
||||
this.addTelemetryObject(domainObject, lastTimestamp);
|
||||
}
|
||||
|
||||
createTableRowCollections() {
|
||||
|
Loading…
Reference in New Issue
Block a user