Remove unecessary code from run server page

This commit is contained in:
Itay Mizeretz 2017-10-17 15:30:42 +03:00
parent c260508ca1
commit 8a70ac3a8c
1 changed files with 0 additions and 7 deletions

View File

@ -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() {