0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Remove :thumbnail prop from all shapes on comp-v2 migration

This commit is contained in:
Andrey Antukh 2024-01-31 18:39:01 +01:00
parent fb7d3676d2
commit 8528de642f
2 changed files with 12 additions and 1 deletions

View file

@ -6,4 +6,4 @@
(ns app.common.files.defaults)
(def version 45)
(def version 46)

View file

@ -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))))