0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-09 13:31:23 -05:00

🐛 Fix incorrect version handling on file migration

This commit is contained in:
Andrey Antukh 2024-03-19 09:03:08 +01:00
parent 409eea6c5c
commit cfe6fae77d

View file

@ -73,7 +73,7 @@
[{:keys [version] :as file}]
(if (int? version)
file
(let [version (or version (-> file :data :version))]
(let [version (or (-> file :data :version) 0)]
(-> file
(assoc :version version)
(update :data dissoc :version)))))