Merge pull request #3166 from penpot/hiru-frame-titles

 Hide frame titles for component copies
This commit is contained in:
Pablo Alba 2023-04-25 21:33:56 +02:00 committed by GitHub
commit 4f471f39da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -176,7 +176,8 @@
on-frame-enter (unchecked-get props "on-frame-enter")
on-frame-leave (unchecked-get props "on-frame-leave")
on-frame-select (unchecked-get props "on-frame-select")
shapes (ctt/get-frames objects)
components-v2 (mf/use-ctx ctx/components-v2)
shapes (ctt/get-frames objects {:skip-copies? components-v2})
shapes (if (debug? :shape-titles)
(into (set shapes)
(map (d/getf objects))