From 43f77376b681b58a5d1f3e4a8691eb6e67701acf Mon Sep 17 00:00:00 2001 From: Elena Torro Date: Wed, 9 Apr 2025 10:13:39 +0200 Subject: [PATCH] :wrench: Do not try to set svg path attrs if none --- frontend/src/app/render_wasm/api.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 6254c156b..7602fc908 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -349,8 +349,6 @@ (h/call wasm/internal-module "_add_shape_stroke_solid_fill" rgba))))) strokes)) - - (defn set-shape-path-attrs [attrs] (let [style (:style attrs) @@ -754,7 +752,8 @@ (when (and (some? content) (or (= type :path) (= type :bool))) - (set-shape-path-attrs svg-attrs) + (when (some? svg-attrs) + (set-shape-path-attrs svg-attrs)) (set-shape-path-content content)) (when (and (some? content) (= type :svg-raw)) (set-shape-svg-raw-content (get-static-markup shape)))