From 629f09089b9ec67e991f2713d8319728d5a6de80 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Wed, 19 Mar 2025 13:54:00 +0100 Subject: [PATCH] :bug: Fix tooltip with only one set and no active (#6107) --- frontend/src/app/main/ui/workspace/tokens/token_pill.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/token_pill.cljs b/frontend/src/app/main/ui/workspace/tokens/token_pill.cljs index cce133af3c..2f375cf56d 100644 --- a/frontend/src/app/main/ui/workspace/tokens/token_pill.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/token_pill.cljs @@ -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))