🐛 Refactor copy/paste for proper handle image shape copying.

This commit is contained in:
Andrey Antukh 2020-12-10 21:52:31 +01:00 committed by Alonso Torres
parent 01edf49de0
commit 6fc90e20e9
5 changed files with 148 additions and 58 deletions

View file

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