forked from p15670423/monkey
Remove unecessary code from run server page
This commit is contained in:
parent
c260508ca1
commit
8a70ac3a8c
|
@ -5,13 +5,6 @@ import {Link} from 'react-router-dom';
|
||||||
class RunServerPageComponent extends React.Component {
|
class RunServerPageComponent extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {ip: '0.0.0.0'};
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
fetch('/api')
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(res => this.setState({ip: res['ip_addresses'][0]}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue