mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 22:27:16 +02:00
✨ Add minor improvement to color cleaning migration
This commit is contained in:
parent
b52e2fa681
commit
207974fe6c
1 changed files with 4 additions and 3 deletions
|
@ -1485,7 +1485,7 @@
|
|||
(update :pages-index d/update-vals update-container)
|
||||
(d/update-when :components d/update-vals update-container))))
|
||||
|
||||
(defmethod migrate-data "0008-fix-library-colors-v3"
|
||||
(defmethod migrate-data "0008-fix-library-colors-v4"
|
||||
[data _]
|
||||
(letfn [(clear-color-opacity [color]
|
||||
(if (and (contains? color :opacity)
|
||||
|
@ -1496,7 +1496,8 @@
|
|||
(clear-color [color]
|
||||
(-> color
|
||||
(select-keys types.color/library-color-attrs)
|
||||
(clear-color-opacity)))]
|
||||
(clear-color-opacity)
|
||||
(d/without-nils)))]
|
||||
|
||||
(d/update-when data :colors d/update-vals clear-color)))
|
||||
|
||||
|
@ -1563,4 +1564,4 @@
|
|||
"0005-deprecate-image-type"
|
||||
"0006-fix-old-texts-fills"
|
||||
"0007-clear-invalid-strokes-and-fills-v2"
|
||||
"0008-fix-library-colors-v3"]))
|
||||
"0008-fix-library-colors-v4"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue