mirror of
https://github.com/penpot/penpot.git
synced 2026-05-09 10:08:54 +00:00
Maintain correct order on group duplication
This commit is contained in:
parent
a3fdb22342
commit
6a38675602
@ -47,6 +47,7 @@
|
||||
(update-in $ [:shapes group :items] #(into [] (cons id %)))
|
||||
(assoc-in $ [:shapes id] shape)))]
|
||||
(->> (map #(get-in state [:shapes %]) items)
|
||||
(reverse)
|
||||
(reduce #(duplicate-shape %1 %2 used-names page id) state)))
|
||||
(let [id (uuid/random)
|
||||
shape (-> (dissoc shape :group)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user