1
0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-08-13 18:56:44 +02:00

🐛 Add better error handling on upload image by url.

This commit is contained in:
Andrey Antukh 2021-02-09 17:16:30 +01:00 committed by Andrés Moya
commit fc49674997
2 changed files with 13 additions and 1 deletions
frontend/src/app/main/data/workspace

View file

@ -424,6 +424,9 @@
(= (:code error) :media-type-not-allowed)
(rx/of (dm/error (tr "errors.media-type-not-allowed")))
(= (:code error) :ubable-to-access-to-url)
(rx/of (dm/error (tr "errors.media-type-not-allowed")))
(= (:code error) :invalid-image)
(rx/of (dm/error (tr "errors.media-type-not-allowed")))