mirror of
https://github.com/penpot/penpot.git
synced 2026-03-22 10:23:43 +00:00
🐛 Coerce finalize? in WASM text updates for valid undo flags
This commit is contained in:
@@ -966,7 +966,11 @@
|
||||
ptk/WatchEvent
|
||||
(watch [it state _]
|
||||
(if (features/active-feature? state "render-wasm/v1")
|
||||
(let [objects (dsh/lookup-page-objects state)
|
||||
(let [;; v3 editor always passes :finalize? from keyword opts; when absent
|
||||
;; that binds nil and :or defaults do not apply — coerce so undo flags
|
||||
;; stay strict booleans for changes-builder schema validation.
|
||||
finalize? (boolean finalize?)
|
||||
objects (dsh/lookup-page-objects state)
|
||||
shape (get objects id)
|
||||
new-shape? (contains? (:workspace-new-text-shapes state) id)
|
||||
prev-content (:content shape)
|
||||
|
||||
Reference in New Issue
Block a user