mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 00:21:40 +02:00
🐛 Fix incorrect thumbnail rendering on dashboard
This commit is contained in:
parent
30a06249ff
commit
65b7e5c3a5
3 changed files with 2 additions and 7 deletions
|
@ -698,11 +698,7 @@
|
|||
|
||||
(defn get-team-recent-files
|
||||
[conn team-id]
|
||||
(->> (db/exec! conn [sql:team-recent-files team-id])
|
||||
(mapv (fn [row]
|
||||
(if-let [media-id (:thumbnail-id row)]
|
||||
(assoc row :thumbnail-uri (resolve-public-uri media-id))
|
||||
(dissoc row :media-id))))))
|
||||
(db/exec! conn [sql:team-recent-files team-id]))
|
||||
|
||||
(def ^:private schema:get-team-recent-files
|
||||
[:map {:title "get-team-recent-files"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue