From 4a3e174029aedfedca652007c4e386ddccef5b3f Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 16 Sep 2019 12:34:32 -0300 Subject: Removed debug strings --- src/Thread.js | 8 +++----- 1 file 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; -- cgit v1.2.1-18-gbd029