From c0ccc0536104f3cd22d1f6747635e869da44e2c5 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Thu, 9 Nov 2023 14:01:54 -0800 Subject: [PATCH] was using a deleted domain object --- src/plugins/telemetryTable/TelemetryTable.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/telemetryTable/TelemetryTable.js b/src/plugins/telemetryTable/TelemetryTable.js index c9c4ca74a5..7fbc8301f6 100644 --- a/src/plugins/telemetryTable/TelemetryTable.js +++ b/src/plugins/telemetryTable/TelemetryTable.js @@ -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() {