зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-04 18:55:50 +03:00
[Fix] Add reject for nil result url
Этот коммит содержится в:
@@ -73,6 +73,9 @@
|
|||||||
method: 'POST'
|
method: 'POST'
|
||||||
}).then(response => response.json())
|
}).then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
if (!result.url) {
|
||||||
|
reject('Upload failed')
|
||||||
|
}
|
||||||
resolve(result.url);
|
resolve(result.url);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user