From 8f30a95ca02baf4494d287cd9c728d6229a7880d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 14 Apr 2026 18:43:45 +0000 Subject: [PATCH] :bug: Guard against nil variant-data in typography-item When d/seek finds no matching font variant (e.g. the variant-id stored on the typography no longer exists in the font's variants list), variant-data is nil and (:name nil) produces nil, resulting in a malformed label like "14px | ". Fall back to "--" in that case. --- frontend/src/app/main/ui/workspace/text_palette.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/text_palette.cljs b/frontend/src/app/main/ui/workspace/text_palette.cljs index 1e20f48bcf..7599a1baed 100644 --- a/frontend/src/app/main/ui/workspace/text_palette.cljs +++ b/frontend/src/app/main/ui/workspace/text_palette.cljs @@ -64,7 +64,7 @@ [:div {:class (stl/css :typography-font)} (:name font-data)] [:div {:class (stl/css :typography-data)} - (str (:font-size typography) "px | " (:name variant-data))]])) + (str (:font-size typography) "px | " (or (:name variant-data) "--"))]])) (mf/defc palette* [{:keys [selected selected-ids current-file-id file-typographies libraries size width]}]