0
Fork 0
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:
Pablo Alba 2024-04-04 13:20:49 +02:00 committed by Andrés Moya
parent 065d481cb5
commit e33b08f47f

View file

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