0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Fixes problems with group options

This commit is contained in:
alonso.torres 2021-01-27 15:02:02 +01:00
parent 4da1b46b05
commit 849eb7714c

View file

@ -138,8 +138,7 @@
extract-attrs
(fn [[ids values] {:keys [id type shapes content] :as shape}]
(let [conj (fnil conj [])
props (get-in type->props [type attr-type])
(let [props (get-in type->props [type attr-type])
result (case props
:ignore [ids values]
:shape [(conj ids id)
@ -151,7 +150,7 @@
:children (let [children (->> (:shapes shape []) (map #(get objects %)))]
(get-attrs children objects attr-type)))]
result))]
(reduce extract-attrs [] shapes)))
(reduce extract-attrs [[] []] shapes)))
(mf/defc options
{::mf/wrap [#(mf/memo' % (mf/check-props ["shape" "shapes-with-children"]))]