From 773ef7e85914fd59d36436a8a70b373303d00512 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 18 Nov 2018 19:09:48 +0100 Subject: [PATCH] Removed useless console.log() --- src/components/Map.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/Map.js b/src/components/Map.js index 61d149a..3103831 100644 --- a/src/components/Map.js +++ b/src/components/Map.js @@ -53,12 +53,6 @@ export default class Map extends React.Component { this.getVegetablesTypes(); } - componentWillReceiveProps(nextProps) { - setTimeout(() => { - this.setMap(); - }, 200); - } - componentDidMount() { window.addEventListener('resize', this.setMap); this.setMap(); @@ -73,8 +67,6 @@ export default class Map extends React.Component { let MapWidth = MapDimensions.width; let MapHeight = MapDimensions.height; - console.log('Update map size') - if (width < MapDimensions.width) { MapWidth = width; MapHeight = Math.round(MapDimensions.height * MapWidth / MapDimensions.width); @@ -103,7 +95,6 @@ export default class Map extends React.Component { getVegetable(id) { Api.get(`types/${id}`) .then(res => { - console.log(res.data) this.setState({ vegetables: res.data });