mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 06:31:04 +00:00
Cherry pick 8065 - Condition sets failing to evaluate telemetry where source and key do not match in metadata (#8066)
Condition sets failing to evaluate telemetry where source and key do not match in metadata (#8065) normalize should map from source to key
This commit is contained in:
parent
2667ff6a4e
commit
4aea6a510c
@ -465,7 +465,7 @@ export default class ConditionManager extends EventEmitter {
|
||||
const normalizedDatum = Object.values(metadata).reduce((datum, metadatum) => {
|
||||
const testValue = this.getTestData(metadatum, endpoint.identifier);
|
||||
const formatter = this.openmct.telemetry.getValueFormatter(metadatum);
|
||||
datum[metadatum.source || metadatum.key] =
|
||||
datum[metadatum.key] =
|
||||
testValue !== undefined
|
||||
? formatter.parse(testValue)
|
||||
: formatter.parse(telemetryDatum[metadatum.source]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user