mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
Compare the enum value to the input, not the index of the enumeration (#3277)
This commit is contained in:
parent
c6ca912f2b
commit
270f07ebd5
@ -211,7 +211,7 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
let inputValue;
|
||||
if (metadataObject) {
|
||||
if (metadataObject.enumerations && input.length) {
|
||||
const enumeration = metadataObject.enumerations[input[0]];
|
||||
const enumeration = metadataObject.enumerations.find((item) => item.value.toString() === input[0].toString());
|
||||
if (enumeration !== undefined && enumeration.string) {
|
||||
inputValue = [enumeration.string];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user