aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-16 12:34:32 -0300
committerLibravatar Renard 2019-09-16 12:34:32 -0300
commit4a3e174029aedfedca652007c4e386ddccef5b3f (patch)
treed3a01d674d60379f6f69c546f0c71f6e5bf44687 /src
parent724733c8b7270e5ce34249388e0ba0323bd88070 (diff)
downloadbai-client-4a3e174029aedfedca652007c4e386ddccef5b3f.tar.gz
bai-client-4a3e174029aedfedca652007c4e386ddccef5b3f.tar.xz
bai-client-4a3e174029aedfedca652007c4e386ddccef5b3f.zip
Removed debug strings
Diffstat (limited to 'src')
-rw-r--r--src/Thread.js8
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;