Fix ImageSource onError callback

This commit is contained in:
Thibaud Colas 2018-01-17 15:44:40 +02:00
parent be608df638
commit 6f9ac80f5f

View file

@ -31,7 +31,7 @@ class ImageSource extends ModalSource {
responses: {
imageChosen: this.parseData,
},
onError() {
onError: () => {
// eslint-disable-next-line no-alert
window.alert(STRINGS.SERVER_ERROR);
onClose();