Interactive interface for browsing global, full-resolution satellite imagery
don't show undefined when details missing
Jason Kenteec30c180aa2
diff --git a/web/js/components/smart-handoffs/smart-handoff-modal.js b/web/js/components/smart-handoffs/smart-handoff-modal.jsindex f73946942..7aa97d40b 100644--- a/web/js/components/smart-handoffs/smart-handoff-modal.js+++ b/web/js/components/smart-handoffs/smart-handoff-modal.js@@ -89,10 +89,10 @@ function SmartHandoffModal({<h1> Collection: </h1><div className="handoff-modal-link">- {`${STD_NRT_MAP[type]} - v${version}`}+ {STD_NRT_MAP[type] + (version ? ` - v${version}` : '')}<br /><a href={cmrSearchDetailURL} target="_blank" rel="noopener noreferrer">- {`${title}`}+ {`${title || 'Details'}`}</a></div>diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.jsindex 5e905f77e..51da679b0 100644--- a/web/js/containers/sidebar/smart-handoff.js+++ b/web/js/containers/sidebar/smart-handoff.js@@ -264,7 +264,7 @@ class SmartHandoff extends Component {onChange={() => selectCollection(collection.value, layer.id)}/><label id={labelId} htmlFor={inputId}>- {`${STD_NRT_MAP[type]} - v${version}`}+ {STD_NRT_MAP[type] + (version ? ` - v${version}` : '')}<FontAwesomeIcon id={`${util.encodeId(value)}-tooltip`} icon="info-circle" /></label>