From dcac6d9ea45b0d3a2f36e976f7f3b5a89a4422e2 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 24 May 2022 07:17:15 +0200 Subject: [PATCH] :bug: Fix adding string for texts with shortcut --- frontend/src/app/main/data/workspace/colors.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/colors.cljs b/frontend/src/app/main/data/workspace/colors.cljs index 88eba5839..00fb55b3a 100644 --- a/frontend/src/app/main/data/workspace/colors.cljs +++ b/frontend/src/app/main/data/workspace/colors.cljs @@ -279,7 +279,10 @@ :always (d/without-nils))] - (assoc-in shape [:strokes index] new-attrs))))))))) + (-> shape + (cond-> (not (contains? shape :strokes)) + (assoc :strokes [])) + (assoc-in [:strokes index] new-attrs)))))))))) (defn add-stroke [ids stroke]