Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

address PR feedback

Jason Kent38ddae0ed5e7
diff --git a/tasks/python3/getCollectionData.py b/tasks/python3/getCollectionData.py
index fa7ebd980..00afefbc1 100755
--- a/tasks/python3/getCollectionData.py
+++ b/tasks/python3/getCollectionData.py
@@ -57,7 +57,7 @@ def process_requests(wv_product_dict):
cmr_fails[failed_id] = True
print("%s: WARNING: No CMR entry for collection: [%s]" % (prog, failed_id))
print("%s: %s collections returned metadata." % (prog, len(cmr_data)))
- print("%s: %s collections did not reutrn any metadata." % (prog, len(cmr_fails)))
+ print("%s: %s collections did not return any metadata." % (prog, len(cmr_fails)))
#MAIN
with open(input_file, 'rt') as concept_id_map:
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.js
index 106f44a84..8d87fc143 100644
--- a/web/js/containers/sidebar/smart-handoff.js
+++ b/web/js/containers/sidebar/smart-handoff.js
@@ -238,10 +238,11 @@ class SmartHandoff extends Component {
/**
* Fires when user selected a different layer
- * @param {*} collection
- * @param {*} currentExtent - the current boundaries of the bounding box
+ * @param {*} layer - the layer being selected
+ * @param {*} collection - the layer being selected
*/
- onLayerChange(layer, collection, currentExtent) {
+ onLayerChange(layer, collection) {
+ const { currentExtent } = this.state;
this.setState({
selectedLayer: layer,
selectedCollection: collection,
@@ -324,7 +325,7 @@ class SmartHandoff extends Component {
*/
renderLayerChoices() {
const { activeLayers } = this.props;
- const { selectedCollection, selectedLayer, currentExtent } = this.state;
+ const { selectedCollection, selectedLayer } = this.state;
return (
<div className="smart-handoff-layer-list">
@@ -355,11 +356,11 @@ class SmartHandoff extends Component {
type="radio"
name="smart-handoff-layer-radio"
checked={isSelected}
- onChange={() => this.onLayerChange(layer, collection, currentExtent)}
+ onChange={() => this.onLayerChange(layer, collection)}
/>
<label id={labelId} htmlFor={inputId}>
{`${STD_NRT_MAP[type]} - v${version}`}
- <FontAwesomeIcon id={`${util.encodeId(value)}-tooltp`} icon="info-circle" />
+ <FontAwesomeIcon id={`${util.encodeId(value)}-tooltip`} icon="info-circle" />
</label>
{this.renderCollectionTooltip(collection, labelId)}