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
+1 -1
View File
@@ -84,7 +84,7 @@ class Media extends Component {
this.setState({ error: false });
this.props.changeContent(URL.createObjectURL(pic), this.props.index, 'url');
}
this.props.changeContent(pic.name, this.props.index, 'media', 'picture');
this.props.changeContent(pic, this.props.index, 'media', 'picture');
}
render() {