0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Fix detaching a copy that has another copy inside produce a validation error

This commit is contained in:
Pablo Alba 2024-02-21 18:16:44 +01:00 committed by Alejandro Alonso
parent bdc303e778
commit 418ec34880

View file

@ -202,7 +202,7 @@
(when (some? head-component)
(get-ref-shape (:data head-file) head-component shape))))]
(d/seek find-ref-shape-in-head parent-heads)))
(some find-ref-shape-in-head parent-heads)))
(defn find-remote-shape
"Recursively go back by the :shape-ref of the shape until find the correct shape of the original component"