load pictures from the api server

This commit is contained in:
Delucse
2020-11-30 13:44:05 +01:00
parent a2c571c1e7
commit c8f01f8273
6 changed files with 53 additions and 31 deletions
@@ -34,7 +34,7 @@ class Requirements extends Component {
onChange = (e) => {
var requirements = this.props.value;
var value = parseInt(e.target.value)
var value = e.target.value;
if (e.target.checked) {
requirements.push(value);
}
@@ -55,8 +55,8 @@ class Requirements extends Component {
key={i}
control={
<Checkbox
value={tutorial.id}
checked={this.props.value.filter(id => id === tutorial.id).length > 0}
value={tutorial._id}
checked={this.props.value.filter(id => id === tutorial._id).length > 0}
onChange={(e) => this.onChange(e)}
name="requirements"
color="primary"