mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Refactor copy/paste for proper handle image shape copying.
This commit is contained in:
parent
01edf49de0
commit
6fc90e20e9
5 changed files with 148 additions and 58 deletions
|
@ -93,7 +93,9 @@
|
|||
[id params]
|
||||
(let [form (js/FormData.)]
|
||||
(run! (fn [[key val]]
|
||||
(.append form (name key) val))
|
||||
(if (list? val)
|
||||
(.append form (name key) (first val) (second val))
|
||||
(.append form (name key) val)))
|
||||
(seq params))
|
||||
(send-mutation! id form)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue