Skip to content

Commit a01dbac

Browse files
authored
cleanup debugger, console.log and style changes added in v3.17.7 (#2689)
* cleanup logs, debuggers, and styles added in 3.17.7 * Refactor CustomPriorityBoundsField to remove duplicate imports and improve code organization
1 parent b82df7b commit a01dbac

5 files changed

Lines changed: 7 additions & 24 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maproulette3",
3-
"version": "3.17.y",
3+
"version": "3.17.7",
44
"type": "module",
55
"private": true,
66
"scripts": {

src/components/Custom/RJSFFormFieldAdapter/CustomPriorityBoundsField.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import L from "leaflet";
12
import { useEffect, useState } from "react";
3+
import { FormattedMessage } from "react-intl";
24
import { MapContainer, TileLayer, useMap } from "react-leaflet";
35
import SvgSymbol from "../../SvgSymbol/SvgSymbol";
4-
import "leaflet/dist/leaflet.css";
5-
import L from "leaflet";
6-
import { FormattedMessage } from "react-intl";
76
import messages from "./Messages";
87
import BoundsSelector from "./components/BoundsSelector";
98
import { usePriorityBoundsData } from "./context/PriorityBoundsDataContext";
@@ -68,7 +67,7 @@ const AutoZoomToBounds = ({
6867

6968
// If no bounds from current priority, try to use all priority bounds
7069
if (!hasValidBounds && allPriorityBounds) {
71-
Object.entries(allPriorityBounds).forEach(([type, priorityData]) => {
70+
Object.entries(allPriorityBounds).forEach(([_type, priorityData]) => {
7271
if (Array.isArray(priorityData) && priorityData.length > 0) {
7372
priorityData.forEach((feature) => {
7473
if (feature?.geometry?.coordinates?.[0]) {

src/components/EnhancedMap/LayerToggle/LayerToggle.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ const overlayToggles = (props) => {
254254
),
255255
}));
256256

257-
console.log("props.challenge", props.challenge);
258257
if (props.challenge) {
259258
const { highPriorityBounds, mediumPriorityBounds, lowPriorityBounds } = props.challenge;
260-
debugger;
259+
261260
if (
262261
props.togglePriorityBounds &&
263262
(props.priorityBounds?.length > 0 ||

src/components/TaskClusterMap/TaskClusterMap.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,3 @@
236236
.leaflet-control-drawer {
237237
z-index: 1000 !important;
238238
}
239-
240-
// Remove outlines from interactive elements and polygons
241-
.leaflet-interactive {
242-
outline: none !important;
243-
}
244-
245-
path.leaflet-interactive {
246-
outline: none !important;
247-
outline-offset: 0 !important;
248-
}
249-
250-
.leaflet-pane path {
251-
outline: none !important;
252-
outline-offset: 0 !important;
253-
}

0 commit comments

Comments
 (0)