Skip to content

Commit

Permalink
chore: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jul 22, 2024
1 parent 8cbb680 commit 97e9c5a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/components/loaders/TrackedEntityLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const TrackedEntityLoader = ({ config, onLoad, loaderAlertAction }) => {
const { showAlerts } = useLoaderAlerts(loaderAlertAction)
useEffect(() => {
trackedEntityLoader(config).then((result) => {
console.log('te show the alerts', result.alerts)
if (result.alerts?.length) {
showAlerts(result.alerts)
}
Expand Down
1 change: 0 additions & 1 deletion src/components/loaders/useLoaderAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function useLoaderAlerts(loaderAlertAction) {

const showAlerts = (alerts) => {
alerts.forEach(({ message: msg, code, warning, critical }) => {
console.log('showAlert', msg, code)
switch (code) {
case INFO_NO_DATA: {
noDataAlert.show({
Expand Down
1 change: 0 additions & 1 deletion src/loaders/eventLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const unknownErrorAlert = {

// Returns a promise
const eventLoader = async (layerConfig, loadExtended) => {
console.log('eventloader')
const config = { ...layerConfig }
try {
await loadEventLayer(config, loadExtended)
Expand Down
1 change: 0 additions & 1 deletion src/loaders/thematicLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import {
import { formatStartEndDate, getDateArray } from '../util/time.js'

const thematicLoader = async (config) => {
console.log('thematicloader')
const {
columns,
radiusLow = THEMATIC_RADIUS_LOW,
Expand Down
1 change: 0 additions & 1 deletion src/loaders/trackedEntityLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const geometryTypes = Object.keys(geometryTypesMap)

//TODO: Refactor to share code with other loaders
const trackedEntityLoader = async (config) => {
console.log('teloader')
if (config.config && typeof config.config === 'string') {
try {
const customConfig = JSON.parse(config.config)
Expand Down
4 changes: 1 addition & 3 deletions src/reducers/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,12 @@ const map = (state = defaultState, action) => {
}
}

case types.MAP_ALERTS_CLEAR: {
console.log('MAP_ALERTS_CLEAR')
case types.MAP_ALERTS_CLEAR:
return {
...state,
alerts: undefined,
mapViews: state.mapViews.map((l) => layer(l, action)),
}
}

default:
return state
Expand Down

0 comments on commit 97e9c5a

Please sign in to comment.