mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 13:58:29 +02:00
🐛 Fix problem with duplicate in main component
This commit is contained in:
parent
3bbf97fde9
commit
786513863b
2 changed files with 12 additions and 2 deletions
|
@ -709,8 +709,8 @@
|
|||
(let [page (wsh/lookup-page state)
|
||||
objects (:objects page)
|
||||
selected (->> (wsh/lookup-selected state)
|
||||
(map #(get objects %))
|
||||
(remove #(ctk/in-component-copy-not-root? %)) ;; We don't want to change the structure of component copies
|
||||
(map (d/getf objects))
|
||||
(filter #(ctk/allow-duplicate? objects %))
|
||||
(map :id)
|
||||
set)]
|
||||
(when (seq selected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue