🐛 Add migration for fix undecoded path content

This commit is contained in:
Andrey Antukh 2025-07-02 16:45:40 +02:00
parent 898182e3d5
commit a2b8f19ff3
7 changed files with 73 additions and 59 deletions

View file

@ -19,8 +19,8 @@
"Generates changes to update the new content of the shape"
[it objects page-id shape old-content new-content]
(assert (path/check-path-content old-content))
(assert (path/check-path-content new-content))
(assert (path/content? old-content))
(assert (path/content? new-content))
(let [shape-id (:id shape)

View file

@ -305,7 +305,7 @@
ptk/UpdateEvent
(update [_ state]
(let [content (some-> (dm/get-in state [:workspace-drawing :object :content])
(path/check-path-content))]
(path/check-content))]
(if (> (count content) 1)
(assoc-in state [:workspace-drawing :object :initialized?] true)
state)))