emove console log
This commit is contained in:
parent
02b02e43bb
commit
095f05370f
|
@ -100,7 +100,6 @@ class MapPageComponent extends React.Component {
|
||||||
|
|
||||||
selectionChanged(event) {
|
selectionChanged(event) {
|
||||||
if (event.nodes.length === 1) {
|
if (event.nodes.length === 1) {
|
||||||
console.log('selected node:', event.nodes[0]); // eslint-disable-line no-console
|
|
||||||
fetch('/api/netmap/node?id=' + event.nodes[0])
|
fetch('/api/netmap/node?id=' + event.nodes[0])
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(res => this.setState({selected: res, selectedType: 'node'}));
|
.then(res => this.setState({selected: res, selectedType: 'node'}));
|
||||||
|
@ -119,7 +118,6 @@ class MapPageComponent extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log('selection cleared.'); // eslint-disable-line no-console
|
|
||||||
this.setState({selected: null, selectedType: null});
|
this.setState({selected: null, selectedType: null});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue