From 905e397d3feb99752154a7f0416e073af5582af9 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Wed, 3 Mar 2021 15:37:49 -0800 Subject: [PATCH] making sure ALL telemetry for a given indicator is fresh (#3734) --- src/plugins/imagery/components/ImageryViewLayout.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/imagery/components/ImageryViewLayout.vue b/src/plugins/imagery/components/ImageryViewLayout.vue index 53d3abcbce..07defd9ba5 100644 --- a/src/plugins/imagery/components/ImageryViewLayout.vue +++ b/src/plugins/imagery/components/ImageryViewLayout.vue @@ -273,7 +273,7 @@ export default { isFresh = true; for (let key of this.spacecraftPositionKeys) { if (this.relatedTelemetry[key] && latest[key] && focused[key]) { - isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); + isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); } else { isFresh = false; } @@ -291,7 +291,7 @@ export default { isFresh = true; for (let key of this.spacecraftOrientationKeys) { if (this.relatedTelemetry[key] && latest[key] && focused[key]) { - isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); + isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); } else { isFresh = false; } @@ -312,7 +312,7 @@ export default { if (this.isSpacecraftPositionFresh && this.isSpacecraftOrientationFresh) { for (let key of this.cameraKeys) { if (this.relatedTelemetry[key] && latest[key] && focused[key]) { - isFresh = Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); + isFresh = isFresh && Boolean(this.relatedTelemetry[key].comparisonFunction(latest[key], focused[key])); } else { isFresh = false; }