Removed useless console.log()
This commit is contained in:
parent
e324446051
commit
773ef7e859
1 changed files with 0 additions and 9 deletions
|
@ -53,12 +53,6 @@ export default class Map extends React.Component {
|
||||||
this.getVegetablesTypes();
|
this.getVegetablesTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
|
||||||
setTimeout(() => {
|
|
||||||
this.setMap();
|
|
||||||
}, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
window.addEventListener('resize', this.setMap);
|
window.addEventListener('resize', this.setMap);
|
||||||
this.setMap();
|
this.setMap();
|
||||||
|
@ -73,8 +67,6 @@ export default class Map extends React.Component {
|
||||||
let MapWidth = MapDimensions.width;
|
let MapWidth = MapDimensions.width;
|
||||||
let MapHeight = MapDimensions.height;
|
let MapHeight = MapDimensions.height;
|
||||||
|
|
||||||
console.log('Update map size')
|
|
||||||
|
|
||||||
if (width < MapDimensions.width) {
|
if (width < MapDimensions.width) {
|
||||||
MapWidth = width;
|
MapWidth = width;
|
||||||
MapHeight = Math.round(MapDimensions.height * MapWidth / MapDimensions.width);
|
MapHeight = Math.round(MapDimensions.height * MapWidth / MapDimensions.width);
|
||||||
|
@ -103,7 +95,6 @@ export default class Map extends React.Component {
|
||||||
getVegetable(id) {
|
getVegetable(id) {
|
||||||
Api.get(`types/${id}`)
|
Api.get(`types/${id}`)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res.data)
|
|
||||||
this.setState({
|
this.setState({
|
||||||
vegetables: res.data
|
vegetables: res.data
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue