Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make sure runSearch gets bound to this

Jason Kent80c0016b8fbe
diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.js
index eb583c550..4e11a1f59 100644
--- a/web/js/components/layer/product-picker/product-picker.js
+++ b/web/js/components/layer/product-picker/product-picker.js
@@ -55,7 +55,8 @@ class ProductPicker extends React.Component {
headerElement: undefined,
listScrollTop: props.listScrollTop || 0,
};
- this.runSearch = lodashDebounce(this.runSearch, 300);
+
+ this.runSearch = lodashDebounce(this.runSearch.bind(this), 300);
this.revertSearchState = this.revertSearchState.bind(this);
this.showMetadataForLayer = this.showMetadataForLayer.bind(this);
this.updateSelectedMeasurement = this.updateSelectedMeasurement.bind(this);