Removed all but error console logs

This commit is contained in:
Jeremi Nieminen
2018-11-25 12:01:23 +02:00
parent 8c2d54d3f3
commit 9fcdc7869f
4 changed files with 1 additions and 6 deletions
-1
View File
@@ -42,7 +42,6 @@ class RegistrationPage extends React.Component {
render() {
console.log(this.props.topic)
let topicsList = this.props.topics.map((topic, idx) => (
<ExpansionPanel key={idx}>
<ExpansionPanelSummary expandIcon={<ExpandMoreIcon />}>
+1 -2
View File
@@ -36,8 +36,7 @@ class TopicListPage extends React.Component {
try {
topic.active = !topic.active
const updatedTopics = this.props.topics.map(topic2 => { return topic2.id === topic.id ? topic : topic2 })
const response = await topicService.update(topic)
console.log('Response: ', response)
await topicService.update(topic)
this.props.updateTopics(updatedTopics)
this.props.setSuccess('Topic update submitted succesfully!')
setTimeout(() => {
-2
View File
@@ -4,8 +4,6 @@ import { BACKEND_URI } from '../utils/config'
const url = `${BACKEND_URI}/api/login`
const login = async (credentials) => {
console.log('logging to', url)
const response = await axios.post(url, credentials)
return response.data
}
-1
View File
@@ -23,7 +23,6 @@ const getAll = async () => {
const getAllActive = async () => {
const response = await axios.get(url + '/active')
console.log(response)
return response.data.topics
}