Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

revert updateDate (#5307)

Patrick Mouldende88768f0381
diff --git a/web/js/mapUI/components/update-date/updateDate.js b/web/js/mapUI/components/update-date/updateDate.js
index 91ca5b1ad..243ca3bf2 100644
--- a/web/js/mapUI/components/update-date/updateDate.js
+++ b/web/js/mapUI/components/update-date/updateDate.js
@@ -123,7 +123,10 @@ function UpdateDate(props) {
return updateDate(action.outOfStep);
}
if (action.type === layerConstants.TOGGLE_LAYER_VISIBILITY || action.type === layerConstants.TOGGLE_OVERLAY_GROUP_VISIBILITY) {
- return updateLayerVisibilities();
+ const outOfStep = false;
+ // if date not changing we do not want to recreate titiler layer
+ const skipTitiler = true;
+ return updateDate(outOfStep, skipTitiler);
}
};