🐛 Fix access to libs on migration during an import (#6572)

This commit is contained in:
Pablo Alba 2025-05-27 14:54:17 +02:00 committed by GitHub
parent 443cabe94e
commit be13704934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -429,7 +429,6 @@
(-> fdata (-> fdata
(assoc :id id) (assoc :id id)
(dissoc :recent-colors)))) (dissoc :recent-colors))))
(fmg/migrate-file libs)
(update :data (fn [fdata] (update :data (fn [fdata]
(-> fdata (-> fdata
(update :pages-index relink-shapes) (update :pages-index relink-shapes)
@ -437,6 +436,7 @@
(update :media relink-media) (update :media relink-media)
(update :colors relink-colors) (update :colors relink-colors)
(d/without-nils)))) (d/without-nils))))
(fmg/migrate-file libs)
;; NOTE: this is necessary because when we just creating a new ;; NOTE: this is necessary because when we just creating a new
;; file from imported artifact or cloned file there are no ;; file from imported artifact or cloned file there are no