mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐛 Fix internal error on inspect svg
This commit is contained in:
parent
66845033ab
commit
87d0c2ac30
1 changed files with 2 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
|||
[:& copy-button {:data (map->css value)}]]
|
||||
|
||||
(for [[attr-key attr-value] value]
|
||||
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-key-" attr-key)}])]
|
||||
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-key-" (d/name attr-key))}])]
|
||||
|
||||
(let [attr-name (as-> attr $
|
||||
(d/name $)
|
||||
|
@ -45,8 +45,7 @@
|
|||
[{:keys [shape]}]
|
||||
[:*
|
||||
(for [[attr-key attr-value] (:svg-attrs shape)]
|
||||
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-block-key" attr-key)}])])
|
||||
|
||||
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-block-key-" (d/name attr-key))}])])
|
||||
|
||||
(mf/defc svg-panel
|
||||
[{:keys [shapes]}]
|
||||
|
|
Loading…
Reference in a new issue