mirror of
https://github.com/penpot/penpot.git
synced 2025-07-12 22:47:17 +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
|
||||
[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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue