mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
🐛 Fix problem when copy image shapes
This commit is contained in:
parent
fa4410bea3
commit
57b6807333
1 changed files with 3 additions and 1 deletions
|
@ -1278,7 +1278,9 @@
|
|||
(let [obj (maybe-translate obj objects selected)]
|
||||
(if (= type :image)
|
||||
(let [url (cfg/resolve-file-media (:metadata obj))]
|
||||
(->> (http/send! {:method :get :uri url})
|
||||
(->> (http/send! {:method :get
|
||||
:uri url
|
||||
:response-type :blob})
|
||||
(rx/map :body)
|
||||
(rx/mapcat wapi/read-file-as-data-url)
|
||||
(rx/map #(assoc obj ::data %))
|
||||
|
|
Loading…
Add table
Reference in a new issue