mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 00:31:38 +02:00
🐛 Fix incorrect handling of error on thumbnail renderer
This commit is contained in:
parent
7f16a79af5
commit
339903f567
3 changed files with 11 additions and 6 deletions
|
@ -76,7 +76,12 @@
|
|||
(when (and visible? (not thumbnail-uri))
|
||||
(->> (ask-for-thumbnail file-id revn)
|
||||
(rx/subs (fn [url]
|
||||
(st/emit! (dd/set-file-thumbnail file-id url)))))))
|
||||
(st/emit! (dd/set-file-thumbnail file-id url)))
|
||||
(fn [cause]
|
||||
(log/error :hint "unable to render thumbnail"
|
||||
:file-if file-id
|
||||
:revn revn
|
||||
:message (ex-message cause)))))))
|
||||
|
||||
[:div.grid-item-th
|
||||
{:style {:background-color background-color}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue