fix: error icon not showing for url upload errors

This commit is contained in:
Bobby Wibowo 2021-01-08 09:43:20 +07:00
parent e9d22ea3ea
commit a37057e099
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -629,6 +629,8 @@ page.processUrlsQueue = () => {
file.previewElement.querySelector('.error').innerHTML = data.description
file.previewElement.querySelector('.error').classList.remove('is-hidden')
page.updateTemplateIcon(file.previewElement, 'icon-block')
}
if (Array.isArray(data.files) && data.files[0]) {