From 241a4ec2fa4439eca98037c6258410785f660a99 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 13 Apr 2026 17:09:21 +0000 Subject: [PATCH] :bug: Strip nil values from saved default font data When detaching a typography, save-font was storing nil values for typography-ref-file and typography-ref-id into the workspace global default font state. These nil values were then merged into every newly created text shape, causing the attributes to appear with nil values instead of being absent. Fix by applying d/without-nils before persisting the default font data, ensuring nil values are never stored as defaults. --- frontend/src/app/main/data/workspace/texts.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 451b4fb8ae..7397405eac 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -649,7 +649,7 @@ (let [multiple? (->> data vals (d/seek #(= % :multiple)))] (cond-> state (not multiple?) - (assoc-in [:workspace-global :default-font] data)))))) + (assoc-in [:workspace-global :default-font] (d/without-nils data))))))) (defn apply-text-modifier [shape text-modifier]