mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -05:00
Merge pull request #222 from tokens-studio/fix-stroke-width-crash
Fix application crashing when stroke width is applied to a shape with…
This commit is contained in:
commit
64da0983f3
1 changed files with 3 additions and 2 deletions
|
@ -72,8 +72,9 @@
|
||||||
(defn update-stroke-width
|
(defn update-stroke-width
|
||||||
[value shape-ids]
|
[value shape-ids]
|
||||||
(dch/update-shapes shape-ids (fn [shape]
|
(dch/update-shapes shape-ids (fn [shape]
|
||||||
(when (seq (:strokes shape))
|
(if (seq (:strokes shape))
|
||||||
(assoc-in shape [:strokes 0 :stroke-width] value)))))
|
(assoc-in shape [:strokes 0 :stroke-width] value)
|
||||||
|
shape))))
|
||||||
|
|
||||||
(defn update-rotation [value shape-ids]
|
(defn update-rotation [value shape-ids]
|
||||||
(ptk/reify ::update-shape-dimensions
|
(ptk/reify ::update-shape-dimensions
|
||||||
|
|
Loading…
Reference in a new issue