Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix linting and test issues

Jason Kentd7f0a1ba1155
diff --git a/tasks/generateLayergroup.js b/tasks/generateLayergroup.js
index 8e8e6685a..bd7584a20 100644
--- a/tasks/generateLayergroup.js
+++ b/tasks/generateLayergroup.js
@@ -1,6 +1,6 @@
const _ = require('lodash');
const fs = require('fs');
-const dir = require('node-dir');
+// const dir = require('node-dir');
const allLayerPropsMap = {};
const SOURCE_DIR = './config/default/common/config/wv.json/layers/';
@@ -16,10 +16,6 @@ const errCallback = (err) => {
}
};
-function capitalizeFirstLetter(string) {
- return !string ? '' : string.charAt(0).toUpperCase() + string.slice(1);
-}
-
function setLayerProp (layer, prop, value) {
const featuredMeasurement = prop === 'measurements' && (value && value.includes('Featured'));
if (!layer || featuredMeasurement) {
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.js
index df76d5603..89ca69c9f 100644
--- a/web/js/modules/layers/util.js
+++ b/web/js/modules/layers/util.js
@@ -1239,7 +1239,7 @@ export function mapLocationToLayerState(
},
});
}
- if (activeB.layers && activeB.groupOverlays && !activeB.overlayGroups) {
+ if (activeB && activeB.layers && activeB.groupOverlays && !activeB.overlayGroups) {
newStateFromLocation = update(newStateFromLocation, {
layers: {
activeB: {