PR updates

This commit is contained in:
Jamie Vigliotta 2020-07-29 11:05:28 -07:00
parent 72f7ec1481
commit 3f2ad2be0c

View File

@ -62,8 +62,8 @@ export default {
let metadata = this.openmct.telemetry.getMetadata(item.domainObject);
return this.metadataHasUnits(metadata.valueMetadatas);
}).length;
return itemsWithUnits !== 0;
});
return itemsWithUnits.length !== 0;
}
},
mounted() {
@ -98,9 +98,8 @@ export default {
});
},
metadataHasUnits(valueMetadatas) {
return valueMetadatas.filter((metadatum) => {
return metadatum.unit;
}).length;
let metadataWithUnits = valueMetadatas.filter(metadatum => metadatum.unit);
return metadataWithUnits.length > 0;
}
}
}