🐛 Avoid creating backup page if no components and no graphics

This commit is contained in:
Andrés Moya 2023-11-14 12:23:32 +01:00 committed by Andrey Antukh
parent c7fdbe37f1
commit 02612ab4ca

View file

@ -580,6 +580,8 @@
(defn- migrate-graphics
[fdata]
(if (empty? (:media fdata))
fdata
(let [[fdata page-id position]
(ctf/get-or-add-library-page fdata grid-gap)
@ -612,7 +614,7 @@
(if-not *skip-on-error*
(throw cause)
fdata))))
fdata))))
fdata)))))
(defn- migrate-file-data
[fdata libs]