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:
David Tsay 2020-03-26 10:41:29 -07:00 committed by GitHub
commit 99a9f5b3ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) : [];
}
/**