mirror of
https://github.com/penpot/penpot.git
synced 2025-07-15 00:27:20 +02:00
🐛 Set correct version on importing
This commit is contained in:
parent
9b32a00454
commit
0547eebf85
1 changed files with 7 additions and 2 deletions
|
@ -680,12 +680,17 @@
|
||||||
|
|
||||||
(let [file-id' (lookup-index file-id)
|
(let [file-id' (lookup-index file-id)
|
||||||
data (-> (:data file)
|
data (-> (:data file)
|
||||||
(assoc :id file-id')
|
(assoc :id file-id'))
|
||||||
|
|
||||||
|
data (if (> (:version data) cfd/version)
|
||||||
|
(assoc data :version cfd/version)
|
||||||
|
data)
|
||||||
|
|
||||||
|
data (-> data
|
||||||
(cond-> migrate? (pmg/migrate-data))
|
(cond-> migrate? (pmg/migrate-data))
|
||||||
(update :pages-index relink-shapes)
|
(update :pages-index relink-shapes)
|
||||||
(update :components relink-shapes)
|
(update :components relink-shapes)
|
||||||
(update :media relink-media)
|
(update :media relink-media)
|
||||||
(assoc :version cfd/version)
|
|
||||||
(postprocess-file))
|
(postprocess-file))
|
||||||
|
|
||||||
params {:id file-id'
|
params {:id file-id'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue