[Fix] Add reject for nil result url

Этот коммит содержится в:
Dmytro Shyrokonis
2024-11-12 16:22:31 +01:00
родитель 99908f97f7
Коммит d690b9906f

Просмотреть файл

@@ -73,6 +73,9 @@
method: 'POST'
}).then(response => response.json())
.then(result => {
if (!result.url) {
reject('Upload failed')
}
resolve(result.url);
})
.catch(error => {