mirror of
https://github.com/penpot/penpot.git
synced 2026-03-27 22:00:35 +01:00
🐛 Clean fdata from nils
This commit is contained in:
@@ -618,7 +618,7 @@
|
||||
|
||||
(defmethod process-change :del-media
|
||||
[data {:keys [id]}]
|
||||
(update data :media dissoc id))
|
||||
(d/update-when data :media dissoc id))
|
||||
|
||||
;; -- Components
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
(ns app.common.files.defaults)
|
||||
|
||||
(def version 36)
|
||||
(def version 37)
|
||||
|
||||
@@ -651,7 +651,6 @@
|
||||
(migrate)
|
||||
(assoc :version 35)))
|
||||
|
||||
|
||||
(defmethod migrate 36
|
||||
[data]
|
||||
(letfn [(update-container [container]
|
||||
@@ -663,3 +662,6 @@
|
||||
(update :pages-index update-vals update-container)
|
||||
(update :components update-vals update-container))))
|
||||
|
||||
(defmethod migrate 37
|
||||
[data]
|
||||
(d/without-nils data))
|
||||
|
||||
Reference in New Issue
Block a user