Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

set ongoing to false for layers with no date info

Jason Kent6929f9631f73
diff --git a/tasks/migrateConfigs.js b/tasks/migrateConfigs.js
index 179171acd..e05b88b4e 100644
--- a/tasks/migrateConfigs.js
+++ b/tasks/migrateConfigs.js
@@ -114,11 +114,12 @@ function modifyProps (layerObj) {
if (!wvJsonLayerObj) {
console.log('Layer not found in wv.json, run build script!', title);
}
+ const staticLayer = !wvJsonLayerObj.startDate && !wvJsonLayerObj.endDate && !wvJsonLayerObj.dateRanges;
const modifiedObj = {
title,
subtitle,
- ongoing: !inactive,
+ ongoing: staticLayer ? false : !inactive,
measurement: measurementsMap[id],
retentionPeriod: -1,
};