From aa1e3f59ed370d83484017bbb3d9b0ba8f9e3036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 8 Mar 2022 15:17:02 +0100 Subject: [PATCH] :wrench: Small refactors --- common/src/app/common/spec/radius.cljc | 2 +- .../app/main/ui/workspace/sidebar/options/shapes/multiple.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/spec/radius.cljc b/common/src/app/common/spec/radius.cljc index 87472899c..bbc077dea 100644 --- a/common/src/app/common/spec/radius.cljc +++ b/common/src/app/common/spec/radius.cljc @@ -33,7 +33,7 @@ (defn has-radius? [shape] - ((get editable-attrs (:type shape)) :rx)) + (contains? (get editable-attrs (:type shape)) :rx)) (defn radius-mode [shape] diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs index a7a913a8b..02900c8ed 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs @@ -180,7 +180,7 @@ :shape (let [;; Get the editable attrs from the shape, ensuring that all attributes ;; are present, with value nil if they are not present in the shape. shape-values (merge - (into {} (map #(hash-map % nil) editable-attrs)) + (into {} (map #(vector % nil)) editable-attrs) (select-keys shape editable-attrs))] [(conj ids id) (merge-attrs values shape-values)])