0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-24 13:41:39 -05:00

🐛 Fix validation in a main with a nested copy

This commit is contained in:
Andrés Moya 2023-12-04 13:18:22 +01:00
parent a4f32de9a1
commit 20dbd75f02

View file

@ -180,7 +180,7 @@
"Locate the near component in the local file or libraries, and retrieve the shape
referenced by the instance shape."
[file page libraries shape & {:keys [include-deleted?] :or {include-deleted? false}}]
(let [root-shape (ctn/get-component-shape (:objects page) shape)
(let [root-shape (ctn/get-copy-root (:objects page) shape)
component-file (when root-shape
(if (= (:component-file root-shape) (:id file))
file