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)