mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
🐛 Fix problem with import with default grids
This commit is contained in:
parent
3eb209b602
commit
60b29a3bf5
1 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
|||
(log/set-level! :trace)
|
||||
|
||||
;; Upload changes batches size
|
||||
(def change-batch-size 100)
|
||||
(def ^:const change-batch-size 100)
|
||||
|
||||
(defn get-file
|
||||
"Resolves the file inside the context given its id and the data"
|
||||
|
@ -212,7 +212,8 @@
|
|||
|
||||
data (-> (cip/parse-data type node)
|
||||
(resolve-data-ids type context)
|
||||
(assoc :id (resolve old-id)))
|
||||
(cond-> (some? old-id)
|
||||
(assoc :id (resolve old-id))))
|
||||
|
||||
file (case type
|
||||
:frame (fb/add-artboard file data)
|
||||
|
@ -225,8 +226,6 @@
|
|||
:svg-raw (fb/create-svg-raw file data)
|
||||
#_default file)]
|
||||
|
||||
(assert (some? old-id) "ID not found")
|
||||
|
||||
;; We store this data for post-processing after every shape has been
|
||||
;; added
|
||||
(cond-> file
|
||||
|
|
Loading…
Reference in a new issue