Merge branch 'master' into remove-action-tests

This commit is contained in:
Shefali Joshi 2020-08-13 09:52:35 -07:00 committed by GitHub
commit 4b6de59b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];
}