mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-22 07:34:45 +00:00
Fix ImageSource onError callback
This commit is contained in:
parent
be608df638
commit
6f9ac80f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue