mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 02:28:18 -05:00
Merge pull request #2123 from andrewzhurov/3885-assets-library-not-showing-graphics
🐛 Fix svg upload
This commit is contained in:
commit
5336db4456
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@
|
||||||
:bucket "file-media-object"}))))
|
:bucket "file-media-object"}))))
|
||||||
|
|
||||||
(create-image [info]
|
(create-image [info]
|
||||||
(p/let [data (cond-> (:path info) (= (:mtype info) "image/svg+xml") slurp)
|
(p/let [data (:path info)
|
||||||
hash (calculate-hash data)
|
hash (calculate-hash data)
|
||||||
content (-> (sto/content data)
|
content (-> (sto/content data)
|
||||||
(sto/wrap-with-hash hash))]
|
(sto/wrap-with-hash hash))]
|
||||||
|
|
Loading…
Add table
Reference in a new issue