mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 20:37:16 +02:00
🐛 Avoid creating backup page if no components and no graphics
This commit is contained in:
parent
c7fdbe37f1
commit
02612ab4ca
1 changed files with 29 additions and 27 deletions
|
@ -580,6 +580,8 @@
|
||||||
|
|
||||||
(defn- migrate-graphics
|
(defn- migrate-graphics
|
||||||
[fdata]
|
[fdata]
|
||||||
|
(if (empty? (:media fdata))
|
||||||
|
fdata
|
||||||
(let [[fdata page-id position]
|
(let [[fdata page-id position]
|
||||||
(ctf/get-or-add-library-page fdata grid-gap)
|
(ctf/get-or-add-library-page fdata grid-gap)
|
||||||
|
|
||||||
|
@ -612,7 +614,7 @@
|
||||||
(if-not *skip-on-error*
|
(if-not *skip-on-error*
|
||||||
(throw cause)
|
(throw cause)
|
||||||
fdata))))
|
fdata))))
|
||||||
fdata))))
|
fdata)))))
|
||||||
|
|
||||||
(defn- migrate-file-data
|
(defn- migrate-file-data
|
||||||
[fdata libs]
|
[fdata libs]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue