Interactive interface for browsing global, full-resolution satellite imagery
Fixed incorrect property renaming when destructuring for several files (#6449)
Jason Hurley863bb6a04629
diff --git a/web/js/components/sidebar/charting-mode-options.js b/web/js/components/sidebar/charting-mode-options.jsindex 85ac90265..1865bf1c6 100644--- a/web/js/components/sidebar/charting-mode-options.js+++ b/web/js/components/sidebar/charting-mode-options.js@@ -163,14 +163,14 @@ function ChartingModeOptions(props) {/*** Update latitude longitude values on* crop change- * @param {Object} boundaries+ * @param {Object} boundaryObj** @returns {null}*/const onBoundaryUpdate = (boundaryObj) => {const {- xBoundary = boundaryObj.x,- yBoundary = boundaryObj.y,+ x: xBoundary,+ y: yBoundary,width,height,} = boundaryObj;diff --git a/web/js/components/timeline/timeline-coverage/coverage-item-container.js b/web/js/components/timeline/timeline-coverage/coverage-item-container.jsindex b177302c6..a7749d19e 100644--- a/web/js/components/timeline/timeline-coverage/coverage-item-container.js+++ b/web/js/components/timeline/timeline-coverage/coverage-item-container.js@@ -128,7 +128,7 @@ class CoverageItemContainer extends Component {// get line container dimensionsconst containerLineDimensions = getMatchingCoverageLineDimensions(layer)- .filter(({ isVisible = visible }) => isVisible);+ .filter(({ visible: isVisible }) => isVisible);return (<divclassName="layer-coverage-line"@@ -157,7 +157,7 @@ class CoverageItemContainer extends Component {layer,dateObj,rangeDateEnd,- ).filter(({ isVisible = visible }) => isVisible);+ ).filter(({ visible: isVisible }) => isVisible);// create DOM line elementconst key = `${id}-${multiIndex}`;return (diff --git a/web/js/containers/animation-widget/animation-widget.js b/web/js/containers/animation-widget/animation-widget.jsindex 5973480f5..2b5ff80ee 100644--- a/web/js/containers/animation-widget/animation-widget.js+++ b/web/js/containers/animation-widget/animation-widget.js@@ -221,8 +221,8 @@ function AnimationWidget (props) {const onPushPlayFunc = () => {const {- startDateZeroed = startDate,- endDateZeroed = endDate,+ startDate: startDateZeroed,+ endDate: endDateZeroed,} = zeroDates();onUpdateStartAndEndDate(startDateZeroed, endDateZeroed);onPushPlay();diff --git a/web/js/containers/gif.js b/web/js/containers/gif.jsindex 3ba58546d..6378f4f48 100644--- a/web/js/containers/gif.js+++ b/web/js/containers/gif.js@@ -179,7 +179,7 @@ class GIF extends Component {createGIF(width, height) {const {- getImageArrayFunc = getImageArray, startDate, endDate, url,+ getImageArrayFunc, startDate, endDate, url,} = this.props;const { boundaries, showDates } = this.state;const dimensions = {diff --git a/web/js/containers/sidebar/layer-row.js b/web/js/containers/sidebar/layer-row.jsindex 9c53e7468..bd759f968 100644--- a/web/js/containers/sidebar/layer-row.js+++ b/web/js/containers/sidebar/layer-row.js@@ -190,7 +190,7 @@ function LayerRow (props) {// hook that checks if the ddv layer zoom alert should be enabled or disableduseEffect(() => {- const { layerTitle = title } = layer;+ const { title: layerTitle } = layer;// if layer is ddv && layer IS NOT already in zoom alert list && zoom is at alertable levelif (isLayerNotificationDismissable && !ddvLayerZoomNoticeActive && showZoomAlert) {enableDDVZoomAlert(layerTitle);@@ -202,7 +202,7 @@ function LayerRow (props) {// hook that checks if the ddv layer location alert should be enabled or disableduseEffect(() => {- const { layerTitle = title } = layer;+ const { title: layerTitle } = layer;// if layer is ddv && layer IS NOT already in location alert list// && location is at alertable coordinatesif (isLayerNotificationDismissable && !ddvLayerLocationNoticeActive && showGranuleAlert) {@@ -309,7 +309,7 @@ function LayerRow (props) {// function called on click when removing a layerconst removeLayer = () => {- const { id, layerTitle = title } = layer;+ const { id, title: layerTitle } = layer;// remove ddv location alertif (ddvLayerLocationNoticeActive) {disableDDVLocationAlert(layerTitle);diff --git a/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js b/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.jsindex f5dc2a126..28f14ed96 100644--- a/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js+++ b/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js@@ -59,7 +59,7 @@ function MouseMoveEvents(props) {const mapStateToProps = (state) => {const {- stateEvents = events, locationSearch, sidebar, animation, measure, screenSize, map,+ events: stateEvents, locationSearch, sidebar, animation, measure, screenSize, map,} = state;const { isCoordinateSearchActive } = locationSearch;const isEventsTabActive = typeof stateEvents !== 'undefined' && stateEvents.active;