mirror of
https://github.com/penpot/penpot.git
synced 2025-06-22 21:37:01 +02:00
Merge pull request #3887 from penpot/hiru-fix-validation
🐛 Fix validation in a main with a nested copy
This commit is contained in:
commit
d57bfa98a3
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@
|
||||||
"Locate the near component in the local file or libraries, and retrieve the shape
|
"Locate the near component in the local file or libraries, and retrieve the shape
|
||||||
referenced by the instance shape."
|
referenced by the instance shape."
|
||||||
[file page libraries shape & {:keys [include-deleted?] :or {include-deleted? false}}]
|
[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
|
component-file (when root-shape
|
||||||
(if (= (:component-file root-shape) (:id file))
|
(if (= (:component-file root-shape) (:id file))
|
||||||
file
|
file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue