diff options
Diffstat (limited to 'src/Thread.js')
-rw-r--r-- | src/Thread.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Thread.js b/src/Thread.js index a5d26c2..022e360 100644 --- a/src/Thread.js +++ b/src/Thread.js @@ -4,7 +4,6 @@ import { Icon, Loader, Message, - Segment, Comment, Breadcrumb } from "semantic-ui-react"; @@ -31,19 +30,18 @@ class Thread extends Component { } else { apiURl = `https://bienvenidoainternet.org/cgi/api/thread?dir=${this.props.dir}&id=${this.props.id}`; } - console.log(apiURl); + fetch(apiURl) .then(response => { return response.json(); }) .then(resource => { if (resource["state"] === "error") { - console.log("API Error:" + resource["message"]); this.setState({ error: resource }); } this.setState({ isLoading: false, thread: resource }); - }) - .catch(console.error); + }); + /* .catch(console.error); */ } render() { const { isLoading, error } = this.state; |