mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 18:46:11 +02:00
Merge pull request #6249 from penpot/elenatorro-10750-fix-path-nil-svg-attrs
🔧 Do not try to set svg path attrs if none
This commit is contained in:
commit
61643f676c
1 changed files with 2 additions and 3 deletions
|
@ -348,8 +348,6 @@
|
|||
(h/call wasm/internal-module "_add_shape_stroke_solid_fill" rgba)))))
|
||||
strokes))
|
||||
|
||||
|
||||
|
||||
(defn set-shape-path-attrs
|
||||
[attrs]
|
||||
(let [style (:style attrs)
|
||||
|
@ -753,7 +751,8 @@
|
|||
(when (and (some? content)
|
||||
(or (= type :path)
|
||||
(= type :bool)))
|
||||
(set-shape-path-attrs svg-attrs)
|
||||
(when (some? svg-attrs)
|
||||
(set-shape-path-attrs svg-attrs))
|
||||
(set-shape-path-content content))
|
||||
(when (and (some? content) (= type :svg-raw))
|
||||
(set-shape-svg-raw-content (get-static-markup shape)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue