Interactive interface for browsing global, full-resolution satellite imagery
WV-2359 Disable Set Area of Interest Without Selection (#3940)
Ryan Weilere2c51afc971c
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.jsindex 3b036f9ad..68b37cf04 100644--- a/web/js/containers/sidebar/smart-handoff.js+++ b/web/js/containers/sidebar/smart-handoff.js@@ -429,6 +429,7 @@ class SmartHandoff extends Component {screenHeight,screenWidth,selectedLayer,+ selectedCollection,} = this.props;const {@@ -441,7 +442,7 @@ class SmartHandoff extends Component {x, y, x2, y2,} = boundaries;- return selectedLayer && proj.id === 'geographic' && (+ return selectedCollection && selectedLayer && proj.id === 'geographic' && (<><div className="smart-handoff-crop-toggle"><Checkbox@@ -608,7 +609,7 @@ class SmartHandoff extends Component {onClick={this.onClickDownload}text="DOWNLOAD VIA EARTHDATA SEARCH"className="download-btn red"- valid={!!isValidDownload}+ valid={!!isValidDownload && !!selectedCollection}/></div></>