mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 08:21:37 +02:00
⚡ Add micro optimization on refs/children-objects
This commit is contained in:
parent
4d2afd483b
commit
63e250d9d0
1 changed files with 2 additions and 2 deletions
|
@ -311,8 +311,8 @@
|
||||||
[id]
|
[id]
|
||||||
(l/derived
|
(l/derived
|
||||||
(fn [objects]
|
(fn [objects]
|
||||||
(let [children-ids (get-in objects [id :shapes])]
|
(->> (dm/get-in objects [id :shapes])
|
||||||
(into [] (keep (d/getf objects)) children-ids)))
|
(into [] (keep (d/getf objects)))))
|
||||||
workspace-page-objects =))
|
workspace-page-objects =))
|
||||||
|
|
||||||
(defn all-children-objects
|
(defn all-children-objects
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue