0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-12 23:11:23 -05:00

Add micro optimization on refs/children-objects

This commit is contained in:
Andrey Antukh 2023-09-05 14:18:38 +02:00
parent 4d2afd483b
commit 63e250d9d0

View file

@ -311,8 +311,8 @@
[id]
(l/derived
(fn [objects]
(let [children-ids (get-in objects [id :shapes])]
(into [] (keep (d/getf objects)) children-ids)))
(->> (dm/get-in objects [id :shapes])
(into [] (keep (d/getf objects)))))
workspace-page-objects =))
(defn all-children-objects