mirror of
https://github.com/nasa/openmct.git
synced 2025-02-04 10:10:43 +00:00
Cleanup
This commit is contained in:
parent
f544a1ddbf
commit
1180597db1
@ -328,14 +328,16 @@ export default class ConditionManager extends EventEmitter {
|
|||||||
if (!this.conditionSetDomainObject.configuration.shouldFetchHistorical) {
|
if (!this.conditionSetDomainObject.configuration.shouldFetchHistorical) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
const historicalTelemetry = new HistoricalTelemetryProvider(
|
let historicalTelemetry = new HistoricalTelemetryProvider(
|
||||||
this.openmct,
|
this.openmct,
|
||||||
this.telemetryObjects,
|
this.telemetryObjects,
|
||||||
this.conditions,
|
this.conditions,
|
||||||
this.conditionSetDomainObject,
|
this.conditionSetDomainObject,
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
return historicalTelemetry.getHistoricalData();
|
const historicalData = historicalTelemetry.getHistoricalData();
|
||||||
|
historicalTelemetry = null;
|
||||||
|
return historicalData;
|
||||||
}
|
}
|
||||||
|
|
||||||
getCurrentConditionLAD(conditionResults) {
|
getCurrentConditionLAD(conditionResults) {
|
||||||
@ -430,18 +432,6 @@ export default class ConditionManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const conditionTelemetries = [];
|
|
||||||
const conditions = this.conditionSetDomainObject.configuration.conditionCollection;
|
|
||||||
conditions.forEach((condition) => {
|
|
||||||
if (condition?.configuration?.outputTelemetry) {
|
|
||||||
conditionTelemetries.push(condition?.configuration?.outputTelemetry);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (conditionTelemetries.includes(id)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user