🐛 Fix problem with duplicate in main component

This commit is contained in:
alonso.torres 2024-03-12 11:55:40 +01:00
parent 3bbf97fde9
commit 786513863b
2 changed files with 12 additions and 2 deletions

View file

@ -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)