mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -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)}]]
|
[:& copy-button {:data (map->css value)}]]
|
||||||
|
|
||||||
(for [[attr-key attr-value] 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 $
|
(let [attr-name (as-> attr $
|
||||||
(d/name $)
|
(d/name $)
|
||||||
|
@ -45,8 +45,7 @@
|
||||||
[{:keys [shape]}]
|
[{:keys [shape]}]
|
||||||
[:*
|
[:*
|
||||||
(for [[attr-key attr-value] (:svg-attrs 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
|
(mf/defc svg-panel
|
||||||
[{:keys [shapes]}]
|
[{:keys [shapes]}]
|
||||||
|
|
Loading…
Reference in a new issue