mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -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)
|
||||
|
||||
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
|
||||
(cond->> shapes
|
||||
|
|
Loading…
Reference in a new issue