mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix unnecesarily overcomplated key generation
This commit is contained in:
committed by
Andrey Antukh
parent
3d1933411b
commit
9e676a7ab2
@@ -68,13 +68,13 @@
|
||||
resolved-token (get-resolved-token property shape resolved-tokens)
|
||||
has-token (has-token? resolved-token stroke-type idx)]
|
||||
(if (= property :border-color)
|
||||
[:> color-properties-row* {:key (dm/str "stroke-" property "-" idx (:color stroke-type))
|
||||
[:> color-properties-row* {:key (str idx property)
|
||||
:term property-name
|
||||
:color stroke-type
|
||||
:token (when has-token resolved-token)
|
||||
:format color-space
|
||||
:copiable true}]
|
||||
[:> properties-row* {:key (dm/str "stroke-" property "-" idx (:color stroke-type))
|
||||
[:> properties-row* {:key (str idx property)
|
||||
:term (d/name property-name)
|
||||
:detail (dm/str value)
|
||||
:token (when has-token resolved-token)
|
||||
|
||||
Reference in New Issue
Block a user