Skip to content

Commit

Permalink
fix codeRefactor: consoles removed
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Jan 24, 2024
1 parent ec2e9fe commit 3990896
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ const LayerSwitcherControl = ({ map, visible = 'osm' }) => {
location.pathname.includes('data-extract') ||
location.pathname.includes('split-tasks')
) {
console.log('yesssss');
const olZoom = document.querySelector('.ol-zoom');
if (olZoom) {
olZoom.style.display = 'none';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function DataExtractValidation(values: ProjectValues) {
errors.customPolygonUpload = 'A GeoJSON file is required.';
}

console.log(errors);
return errors;
}

Expand Down
1 change: 0 additions & 1 deletion src/frontend/src/hooks/Prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { unstable_useBlocker as useBlocker } from 'react-router-dom';
function Prompt(props) {
const block = props.when;
useBlocker(({ nextLocation }) => {
console.log(nextLocation, 'next');
if (block && !pathNotToBlock.includes(nextLocation.pathname)) {
return !window.confirm(props.message);
}
Expand Down

0 comments on commit 3990896

Please sign in to comment.