mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Fix problem with importation process
This commit is contained in:
parent
7b887d3188
commit
a2fbf93ec1
2 changed files with 11 additions and 10 deletions
|
@ -50,6 +50,7 @@
|
||||||
- Fix grid not being clipped in frames [#3365](https://github.com/penpot/penpot/issues/3365)
|
- Fix grid not being clipped in frames [#3365](https://github.com/penpot/penpot/issues/3365)
|
||||||
- Fix cut/delete text layer when while creating text [Taiga #5602](https://tree.taiga.io/project/penpot/issue/5602)
|
- Fix cut/delete text layer when while creating text [Taiga #5602](https://tree.taiga.io/project/penpot/issue/5602)
|
||||||
- Fix picking a gradient color in recent colors for a new color in the assets tab [Taiga #5601](https://tree.taiga.io/project/penpot/issue/5601)
|
- Fix picking a gradient color in recent colors for a new color in the assets tab [Taiga #5601](https://tree.taiga.io/project/penpot/issue/5601)
|
||||||
|
- Fix problem with importation process [Taiga #5597](https://tree.taiga.io/project/penpot/issue/5597)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
|
|
|
@ -86,16 +86,16 @@
|
||||||
(ex/raise :type :validation
|
(ex/raise :type :validation
|
||||||
:code :cant-persist-already-persisted-file))
|
:code :cant-persist-already-persisted-file))
|
||||||
|
|
||||||
(loop [revs (seq revs)
|
|
||||||
data (blob/decode (:data file))]
|
(let [data
|
||||||
(if-let [rev (first revs)]
|
(->> revs
|
||||||
(recur (rest revs)
|
(mapcat #(->> % :changes blob/decode))
|
||||||
(->> rev :changes blob/decode (cp/process-changes data)))
|
(cp/process-changes (blob/decode (:data file))))]
|
||||||
(db/update! conn :file
|
(db/update! conn :file
|
||||||
{:deleted-at nil
|
{:deleted-at nil
|
||||||
:revn revn
|
:revn revn
|
||||||
:data (blob/encode data)}
|
:data (blob/encode data)}
|
||||||
{:id id})))
|
{:id id}))
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
(s/def ::persist-temp-file
|
(s/def ::persist-temp-file
|
||||||
|
|
Loading…
Reference in a new issue