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]