Skip to content
Snippets Groups Projects
Commit b7cb6f74 authored by Thomas Roos's avatar Thomas Roos
Browse files

Remove debug logs from grade page

parent e9ec96eb
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,6 @@ class Grade extends React.Component { ...@@ -44,7 +44,6 @@ class Grade extends React.Component {
const newIndex = this.state.sIndex + 1; const newIndex = this.state.sIndex + 1;
if (newIndex >= 0 && newIndex < this.props.exam.submissions.length) { if (newIndex >= 0 && newIndex < this.props.exam.submissions.length) {
console.log(newIndex + ' / ' + this.props.exam.submissions.length)
this.props.updateSubmission(newIndex) this.props.updateSubmission(newIndex)
this.setState({ this.setState({
sIndex: newIndex, sIndex: newIndex,
...@@ -89,13 +88,11 @@ class Grade extends React.Component { ...@@ -89,13 +88,11 @@ class Grade extends React.Component {
} }
} }
changeProblem = (event) => { changeProblem = (event) => {
console.log(event.target.value);
this.setState({ this.setState({
pIndex: event.target.value pIndex: event.target.value
}) })
} }
static getDerivedStateFromProps = (newProps, prevState) => { static getDerivedStateFromProps = (newProps, prevState) => {
console.log('Nieuwe props')
if (newProps.exam.id != prevState.examID && newProps.exam.submissions.length) { if (newProps.exam.id != prevState.examID && newProps.exam.submissions.length) {
return { return {
input: Grade.inputString(newProps.exam.submissions[0]), input: Grade.inputString(newProps.exam.submissions[0]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment