metadataManager should check for a values array

before calling map on it
This commit is contained in:
Deep Tailor 2020-03-26 10:25:04 -07:00
parent 51498c0e75
commit 4b535ade31

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