0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Dont render starting slash

This commit is contained in:
Florian Schroedl 2024-09-26 15:27:16 +02:00
parent 5f6a76dfce
commit 3843253a5d

View file

@ -66,8 +66,9 @@
;; Data ;; Data
current-label (cond current-label (cond
(> active-themes-count 1) (str active-themes-count " themes active") (> active-themes-count 1) (str active-themes-count " themes active")
(= active-themes-count 1) (some-> (first active-theme-paths) (= active-themes-count 1) (some->> (first active-theme-paths)
(str/replace "/" " / ")) (ctob/split-token-theme-path)
(str/join " / "))
:else "No theme active") :else "No theme active")
;; State ;; State