mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -05:00
🐛 Fix crash on moving a copy outside a copy
This commit is contained in:
parent
065d481cb5
commit
e33b08f47f
1 changed files with 5 additions and 1 deletions
|
@ -844,7 +844,11 @@
|
||||||
|
|
||||||
component-main-frame (ctn/find-component-main objects frame false)
|
component-main-frame (ctn/find-component-main objects frame false)
|
||||||
|
|
||||||
shapes (->> ids (cfh/clean-loops objects) (keep lookup))
|
shapes (->> ids
|
||||||
|
(cfh/clean-loops objects)
|
||||||
|
(keep lookup)
|
||||||
|
;;remove shapes inside copies, because we can't change the structure of copies
|
||||||
|
(remove #(ctk/in-component-copy? (get objects (:parent-id %)))))
|
||||||
|
|
||||||
moving-shapes
|
moving-shapes
|
||||||
(cond->> shapes
|
(cond->> shapes
|
||||||
|
|
Loading…
Add table
Reference in a new issue