mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
🐛 Remove :thumbnail prop from all shapes on comp-v2 migration
This commit is contained in:
parent
fb7d3676d2
commit
8528de642f
@ -6,4 +6,4 @@
|
||||
|
||||
(ns app.common.files.defaults)
|
||||
|
||||
(def version 45)
|
||||
(def version 46)
|
||||
|
||||
@ -865,3 +865,14 @@
|
||||
(d/update-when container :objects update-vals fix-shape))]
|
||||
(-> data
|
||||
(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…
x
Reference in New Issue
Block a user