mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 03:28:25 -05:00
🐛 Remove :thumbnail
prop from all shapes on comp-v2 migration
This commit is contained in:
parent
fb7d3676d2
commit
8528de642f
2 changed files with 12 additions and 1 deletions
|
@ -6,4 +6,4 @@
|
||||||
|
|
||||||
(ns app.common.files.defaults)
|
(ns app.common.files.defaults)
|
||||||
|
|
||||||
(def version 45)
|
(def version 46)
|
||||||
|
|
|
@ -865,3 +865,14 @@
|
||||||
(d/update-when container :objects update-vals fix-shape))]
|
(d/update-when container :objects update-vals fix-shape))]
|
||||||
(-> data
|
(-> data
|
||||||
(update :pages-index update-vals update-container))))
|
(update :pages-index update-vals update-container))))
|
||||||
|
|
||||||
|
(defmethod migrate 46
|
||||||
|
[data]
|
||||||
|
(letfn [(update-object [object]
|
||||||
|
(dissoc object :thumbnail))
|
||||||
|
|
||||||
|
(update-container [container]
|
||||||
|
(d/update-when container :objects update-vals update-object))]
|
||||||
|
(-> data
|
||||||
|
(update :pages-index update-vals update-container)
|
||||||
|
(update :components update-vals update-container))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue