🐛 Fix tooltip with only one set and no active (#6107)

This commit is contained in:
Eva Marco 2025-03-19 13:54:00 +01:00 committed by GitHub
parent 344ec94a3f
commit 629f09089b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))