mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix invalid page name on compv2 migration
This commit is contained in:
parent
ab0b3c71a8
commit
126bab3ce4
@ -215,10 +215,15 @@
|
||||
(update :pages-index update-vals fix-container)
|
||||
(d/update-when :components update-vals fix-container))))
|
||||
|
||||
fix-page-invalid-options
|
||||
fix-invalid-page
|
||||
(fn [file-data]
|
||||
(letfn [(update-page [page]
|
||||
(update page :options fix-options))
|
||||
(-> page
|
||||
(update :name (fn [name]
|
||||
(if (nil? name)
|
||||
"Page"
|
||||
name)))
|
||||
(update :options fix-options)))
|
||||
|
||||
(fix-background [options]
|
||||
(if (and (contains? options :background)
|
||||
@ -993,7 +998,7 @@
|
||||
|
||||
(-> file-data
|
||||
(fix-file-data)
|
||||
(fix-page-invalid-options)
|
||||
(fix-invalid-page)
|
||||
(fix-misc-shape-issues)
|
||||
(fix-recent-colors)
|
||||
(fix-missing-image-metadata)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user