From 3843253a5da59c18d49c26a7220ef66a89195cc7 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 26 Sep 2024 15:27:16 +0200 Subject: [PATCH] Dont render starting slash --- frontend/src/app/main/ui/workspace/tokens/theme_select.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs b/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs index 46f8cdfd9f..720998d8c0 100644 --- a/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs @@ -66,8 +66,9 @@ ;; Data current-label (cond (> active-themes-count 1) (str active-themes-count " themes active") - (= active-themes-count 1) (some-> (first active-theme-paths) - (str/replace "/" " / ")) + (= active-themes-count 1) (some->> (first active-theme-paths) + (ctob/split-token-theme-path) + (str/join " / ")) :else "No theme active") ;; State