mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
Properly catch exceptions on image fetching.
This commit is contained in:
parent
db36c617bf
commit
3bb991da0b
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@
|
|||
(if existing
|
||||
(rx/empty)
|
||||
(->> (rp/req :fetch/image {:id id})
|
||||
(rx/catch rp/client-error? #(rx/empty))
|
||||
(rx/map :payload)
|
||||
(rx/map image-fetched))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue