0
Fork 0
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:
alonso.torres 2021-05-06 15:50:10 +02:00 committed by Andrey Antukh
parent fa4410bea3
commit 57b6807333

View file

@ -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 %))