making sure ALL telemetry for a given indicator is fresh (#3734)

This commit is contained in:
Jamie V 2021-03-03 15:37:49 -08:00 committed by GitHub
parent e70a636073
commit 905e397d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}