🎉 Detach component now only affects top instance, not subinstances

This commit is contained in:
Andrés Moya 2023-04-03 11:52:26 +02:00
parent b33e469501
commit a27fa8b317
2 changed files with 20 additions and 18 deletions

View file

@ -63,6 +63,10 @@
[container shape-id f]
(update-in container [:objects shape-id] f))
(defn get-direct-children
[container shape]
(map #(get-shape container %) (:shapes shape)))
(defn get-component-shape
"Get the parent shape linked to a component for this shape, if any"
[objects shape]