From 0c0c81e9a5b103fd0242b6bc5a3cccd50d5c6a6c Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 28 Jul 2025 17:20:58 +0200 Subject: [PATCH] :bug: Fix problem with shape to path not working --- frontend/src/app/render_wasm/shape.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/render_wasm/shape.cljs b/frontend/src/app/render_wasm/shape.cljs index 298a7ff353..a69ca28968 100644 --- a/frontend/src/app/render_wasm/shape.cljs +++ b/frontend/src/app/render_wasm/shape.cljs @@ -11,6 +11,7 @@ [app.common.transit :as t] [app.common.types.shape :as shape] [app.common.types.shape.layout :as ctl] + [app.common.uuid :as uuid] [app.render-wasm.api :as api] [beicon.v2.core :as rx] [clojure.core :as c] @@ -116,7 +117,10 @@ id (get shape :id)] (case k :parent-id (api/set-parent-id v) - :type (api/set-shape-type v) + :type (do + (api/set-shape-type v) + (when (or (= v :path) (= v :bool)) + (api/set-shape-path-content (:content shape)))) :bool-type (api/set-shape-bool-type v) :selrect (api/set-shape-selrect v) :show-content (if (= (:type shape) :frame)