From 849eb7714c1a449e4df2aa9bced19e87c05e39d5 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 27 Jan 2021 15:02:02 +0100 Subject: [PATCH] :bug: Fixes problems with group options --- .../src/app/main/ui/workspace/sidebar/options/multiple.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/multiple.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/multiple.cljs index 586ad2906..ca7c0eaf3 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/multiple.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/multiple.cljs @@ -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"]))]