mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
PR updates
This commit is contained in:
parent
72f7ec1481
commit
3f2ad2be0c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user