mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
Merge branch 'master' into remove-action-tests
This commit is contained in:
commit
4b6de59b03
@ -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