🐛 Fix problem with shape to path not working

This commit is contained in:
alonso.torres 2025-07-28 17:20:58 +02:00
parent e6ac2c1159
commit 0c0c81e9a5

View file

@ -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)