0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Add mising remap-id on onboarding files setup.

This commit is contained in:
Andrey Antukh 2021-03-01 15:41:39 +01:00
parent 9fb8ba2ff1
commit f12f46981b

View file

@ -134,7 +134,9 @@
(reduce #(assoc %1 (:id %2) (uuid/next)) index (:files data))
(reduce #(assoc %1 (:id %2) (uuid/next)) index (:fmeds data)))
flibs (map #(remap-id % index :file-id) (:flibs data))
flibs (->> (:flibs data)
(map #(remap-id % index :file-id))
(map #(remap-id % index :library-file-id)))
files (->> (:files data)
(map #(assoc % :id (get index (:id %))))