mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 16:18:23 +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
|
||||
"Generates a tooltip for a given token"
|
||||
[is-viewer shape theme-token token half-applied no-valid-value ref-not-in-active-set]
|
||||
(let [{:keys [name value type]} token
|
||||
{:keys [resolved-value]} theme-token
|
||||
(let [{:keys [name value type resolved-value]} 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)
|
||||
applied-tokens (:applied-tokens shape)
|
||||
app-token-vals (set (vals applied-tokens))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue