mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Removed all but error console logs
This commit is contained in:
@@ -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 />}>
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ const getAll = async () => {
|
||||
|
||||
const getAllActive = async () => {
|
||||
const response = await axios.get(url + '/active')
|
||||
console.log(response)
|
||||
return response.data.topics
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user