Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix console errors #1576

Benjamin Kingafa169942667
diff --git a/web/js/components/util/list.js b/web/js/components/util/list.js
index 509682f9e..ce62a7484 100644
--- a/web/js/components/util/list.js
+++ b/web/js/components/util/list.js
@@ -57,6 +57,6 @@ List.propTypes = {
listClass: PropTypes.string,
active: PropTypes.string,
disabled: PropTypes.bool,
- onClick: PropTypes.function,
+ onClick: PropTypes.func,
size: PropTypes.string
};
diff --git a/web/js/containers/share.js b/web/js/containers/share.js
index 15ca131c7..f531fa11f 100644
--- a/web/js/containers/share.js
+++ b/web/js/containers/share.js
@@ -210,6 +210,7 @@ export default connect(
ShareLinkContainer.propTypes = {
projection: PropTypes.string,
queryString: PropTypes.string,
- requestShortLink: PropTypes.function,
+ requestShortLink: PropTypes.func,
+ shortLink: PropTypes.object,
mock: PropTypes.string
};
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index de1e60f72..02e0c0aa6 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -7,6 +7,8 @@ import lodashIndexOf from 'lodash/indexOf';
import lodashSortBy from 'lodash/sortBy';
import lodashValues from 'lodash/values';
import lodashDebounce from 'lodash/debounce';
+import lodashToLower from 'lodash/toLower';
+import lodashIncludes from 'lodash/includes';
export function layersModal(models, ui, config) {
var model = models.layers;
@@ -197,10 +199,10 @@ export function layersModal(models, ui, config) {
var names = models.layers.getTitles(layer.id);
$.each(terms, function(index, term) {
filtered =
- !names.title.toLowerCase().contains(term) &&
- !names.subtitle.toLowerCase().contains(term) &&
- !names.tags.toLowerCase().contains(term) &&
- !config.layers[layer.id].id.toLowerCase().contains(term);
+ !lodashIncludes(lodashToLower(names.title), term) &&
+ !lodashIncludes(lodashToLower(names.subtitle), term) &&
+ !lodashIncludes(lodashToLower(names.tags), term) &&
+ !lodashIncludes(lodashToLower(config.layers[layer.id].id), term);
if (filtered) return false;
});
diff --git a/web/js/layers/options.js b/web/js/layers/options.js
index 62c9f8d96..5fe2cd277 100644
--- a/web/js/layers/options.js
+++ b/web/js/layers/options.js
@@ -57,7 +57,6 @@ export function layersOptions(models, ui, config) {
* Mount component once customs Config is loaded
*/
var loaded = function() {
- console.log(config);
self.reactComponent = render(
<LayerSettings
setCustom={models.palettes.setCustom}
diff --git a/web/js/modules/image-download/util.js b/web/js/modules/image-download/util.js
index 02c2d9d09..d0d5950e6 100644
--- a/web/js/modules/image-download/util.js
+++ b/web/js/modules/image-download/util.js
@@ -173,7 +173,6 @@ export function imageSizeValid(imgHeight, imgWidth, maxSize) {
return true;
}
export function getDimensions(projection, bounds, resolution) {
- console.log(projection);
const conversionFactor = imageUtilGetConversionFactor(projection);
const imgWidth = Math.round(
Math.abs(bounds[1][0] - bounds[0][0]) /