mirror of
https://github.com/penpot/penpot.git
synced 2025-07-12 17:57:17 +02:00
🐛 Add migration for fix undecoded path content
This commit is contained in:
parent
898182e3d5
commit
a2b8f19ff3
7 changed files with 73 additions and 59 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue