From 0d478d5dfcbb2cb6d72005122b60c9db23af19e6 Mon Sep 17 00:00:00 2001 From: Jamie Vigliotta Date: Thu, 30 Jul 2020 17:48:32 -0700 Subject: [PATCH] making hasUnits computed value more clear --- src/plugins/LADTable/components/LadTableSet.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/LADTable/components/LadTableSet.vue b/src/plugins/LADTable/components/LadTableSet.vue index 94b3362b97..6f27007299 100644 --- a/src/plugins/LADTable/components/LadTableSet.vue +++ b/src/plugins/LADTable/components/LadTableSet.vue @@ -72,7 +72,6 @@ export default { hasUnits() { let ladTables = Object.values(this.secondaryTelemetryObjects); for(let ladTable of ladTables) { - console.log('ladTable', ladTable); for(let telemetryObject of ladTable) { let metadata = this.openmct.telemetry.getMetadata(telemetryObject.domainObject); for(let metadatum of metadata.valueMetadatas) { @@ -124,9 +123,8 @@ export default { let index = this.primaryTelemetryObjects.findIndex(primary => this.openmct.objects.makeKeyString(identifier) === primary.key), primary = this.primaryTelemetryObjects[index]; - this.$set(this.secondaryTelemetryObjects, primary.key, undefined); + this.$delete(this.secondaryTelemetryObjects, primary.key); this.primaryTelemetryObjects.splice(index,1); - primary = undefined; }, reorderPrimary(reorderPlan) { let oldComposition = this.primaryTelemetryObjects.slice();