mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 21:54:20 +00:00
Condition sets failing to evaluate telemetry where source and key do not match in metadata (#8065)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Some checks failed
CodeQL / Analyze (push) Has been cancelled
normalize should map from source to key
This commit is contained in:
parent
2e7fb94dd5
commit
10bc8eb55d
@ -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