0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix a mini bug

This commit is contained in:
Andrés Moya 2020-07-03 11:46:33 +02:00
parent a2abe6d882
commit a8d5cdc29f
2 changed files with 5 additions and 1 deletions

View file

@ -26,7 +26,7 @@
fill-values (get-multi children fill-attrs)
stroke-values (get-multi children stroke-attrs)]
[:*
[:& measures-menu {:ids (:id shape)
[:& measures-menu {:ids [(:id shape)]
:type type
:values measure-values}]
[:& fill-menu {:ids child-ids

View file

@ -16,6 +16,10 @@
(defn get-multi
[shapes attrs]
;; Extract some attributes of a list of shapes.
;; For each attribute, if the value is the same in all shapes,
;; wll take this value. If there is any shape that is different,
;; the value of the attribute will be the keyword :multiple.
(let [combine-value #(if (= %1 %2) %1 :multiple)
combine-values (fn [attrs shape values]