mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
metadataManager should check for a values array
before calling map on it
This commit is contained in:
parent
51498c0e75
commit
4b535ade31
@ -81,7 +81,7 @@ define([
|
||||
function TelemetryMetadataManager(metadata) {
|
||||
this.metadata = metadata;
|
||||
|
||||
this.valueMetadatas = this.metadata.values.map(applyReasonableDefaults);
|
||||
this.valueMetadatas = this.metadata.values ? this.metadata.values.map(applyReasonableDefaults) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user