mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 13:18:28 +02:00
🐛 Fix tooltip with only one set and no active (#6107)
This commit is contained in:
parent
344ec94a3f
commit
629f09089b
1 changed files with 3 additions and 2 deletions
|
@ -103,8 +103,9 @@
|
||||||
(defn- generate-tooltip
|
(defn- generate-tooltip
|
||||||
"Generates a tooltip for a given token"
|
"Generates a tooltip for a given token"
|
||||||
[is-viewer shape theme-token token half-applied no-valid-value ref-not-in-active-set]
|
[is-viewer shape theme-token token half-applied no-valid-value ref-not-in-active-set]
|
||||||
(let [{:keys [name value type]} token
|
(let [{:keys [name value type resolved-value]} token
|
||||||
{:keys [resolved-value]} theme-token
|
resolved-value-theme (:resolved-value theme-token)
|
||||||
|
resolved-value (or resolved-value-theme resolved-value)
|
||||||
{:keys [title] :as token-props} (wtch/get-token-properties theme-token)
|
{:keys [title] :as token-props} (wtch/get-token-properties theme-token)
|
||||||
applied-tokens (:applied-tokens shape)
|
applied-tokens (:applied-tokens shape)
|
||||||
app-token-vals (set (vals applied-tokens))
|
app-token-vals (set (vals applied-tokens))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue