mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 11:35:59 +00:00
Fix for missing object for LADTableSet (#5458)
* Handle missing object errors for display layouts Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
parent
063df721ae
commit
2bd38dab9f
@ -197,7 +197,7 @@ export default {
|
||||
}
|
||||
},
|
||||
setUnit() {
|
||||
this.unit = this.valueMetadata.unit || '';
|
||||
this.unit = this.valueMetadata ? this.valueMetadata.unit : '';
|
||||
},
|
||||
firstNonDomainAttribute(metadata) {
|
||||
return metadata
|
||||
|
@ -83,9 +83,12 @@ export default {
|
||||
for (let ladTable of ladTables) {
|
||||
for (let telemetryObject of ladTable) {
|
||||
let metadata = this.openmct.telemetry.getMetadata(telemetryObject.domainObject);
|
||||
for (let metadatum of metadata.valueMetadatas) {
|
||||
if (metadatum.unit) {
|
||||
return true;
|
||||
|
||||
if (metadata) {
|
||||
for (let metadatum of metadata.valueMetadatas) {
|
||||
if (metadatum.unit) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user