Skip to content

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.js
index 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.js
index 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 dimensions
const containerLineDimensions = getMatchingCoverageLineDimensions(layer)
- .filter(({ isVisible = visible }) => isVisible);
+ .filter(({ visible: isVisible }) => isVisible);
return (
<div
className="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 element
const key = `${id}-${multiIndex}`;
return (
diff --git a/web/js/containers/animation-widget/animation-widget.js b/web/js/containers/animation-widget/animation-widget.js
index 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.js
index 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.js
index 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 disabled
useEffect(() => {
- const { layerTitle = title } = layer;
+ const { title: layerTitle } = layer;
// if layer is ddv && layer IS NOT already in zoom alert list && zoom is at alertable level
if (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 disabled
useEffect(() => {
- const { layerTitle = title } = layer;
+ const { title: layerTitle } = layer;
// if layer is ddv && layer IS NOT already in location alert list
// && location is at alertable coordinates
if (isLayerNotificationDismissable && !ddvLayerLocationNoticeActive && showGranuleAlert) {
@@ -309,7 +309,7 @@ function LayerRow (props) {
// function called on click when removing a layer
const removeLayer = () => {
- const { id, layerTitle = title } = layer;
+ const { id, title: layerTitle } = layer;
// remove ddv location alert
if (ddvLayerLocationNoticeActive) {
disableDDVLocationAlert(layerTitle);
diff --git a/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js b/web/js/mapUI/components/mouse-move-events/mouseMoveEvents.js
index 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;