mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 07:48:21 +02:00
Merge pull request #3599 from penpot/niwinz-develop-experiments-3
🐛 Replace `:use-for-thumbnail?` with `:use-for-thumbnail`
This commit is contained in:
commit
a4754a2106
8 changed files with 29 additions and 14 deletions
|
@ -6,4 +6,4 @@
|
|||
|
||||
(ns app.common.files.defaults)
|
||||
|
||||
(def version 30)
|
||||
(def version 31)
|
||||
|
|
|
@ -576,3 +576,18 @@
|
|||
(-> data
|
||||
(update :pages-index update-vals update-container)
|
||||
(update :components update-vals update-container))))
|
||||
|
||||
(defmethod migrate 31
|
||||
[data]
|
||||
(letfn [(update-object [object]
|
||||
(cond-> object
|
||||
(contains? object :use-for-thumbnail?)
|
||||
(-> (assoc :use-for-thumbnail (:use-for-thumbnail? object))
|
||||
(dissoc :use-for-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
Add a link
Reference in a new issue