was using a deleted domain object

This commit is contained in:
Jamie V 2023-11-09 14:01:54 -08:00
parent e03683e11a
commit c0ccc05361

View File

@ -115,15 +115,14 @@ define([
const keystring = Object.keys(this.telemetryCollections)[0]; const keystring = Object.keys(this.telemetryCollections)[0];
const lastDatum = this.telemetryCollections[keystring].getLastTelemetryDatum(); const lastDatum = this.telemetryCollections[keystring].getLastTelemetryDatum();
const timestampKey = this.openmct.time.timeSystem().key; const timestampKey = this.openmct.time.timeSystem().key;
const metadata = this.openmct.telemetry.getMetadata( const domainObject = this.telemetryCollections[keystring].domainObject;
this.telemetryCollections[keystring].domainObject const metadata = this.openmct.telemetry.getMetadata(domainObject);
);
const formats = this.openmct.telemetry.getFormatMap(metadata); const formats = this.openmct.telemetry.getFormatMap(metadata);
const lastTimestamp = formats[timestampKey].parse(lastDatum); const lastTimestamp = formats[timestampKey].parse(lastDatum);
// clear old collection, rerequest from last timestamp // clear old collection, rerequest from last timestamp
this.removeTelemetryObject(this.telemetryCollections[keystring].domainObject.identifier); this.removeTelemetryObject(domainObject.identifier);
this.addTelemetryObject(this.telemetryCollections[keystring].domainObject, lastTimestamp); this.addTelemetryObject(domainObject, lastTimestamp);
} }
createTableRowCollections() { createTableRowCollections() {