mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
metadataManager should check for a values array
before calling map on it
This commit is contained in:
@ -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) : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user