mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
Merge pull request #2790 from nasa/telemetry-metadata-manager-fix-32620
[Metadata] Fails when trying to apply reasonable defaults to an undefined values array
This commit is contained in:
commit
99a9f5b3ba
@ -81,7 +81,7 @@ define([
|
|||||||
function TelemetryMetadataManager(metadata) {
|
function TelemetryMetadataManager(metadata) {
|
||||||
this.metadata = 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