mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
🔥 Remove unused components-v2 binding on fdata creation
This commit is contained in:
parent
be9e3fa355
commit
b242eb5b32
@ -84,8 +84,7 @@
|
||||
|
||||
(defn with-objects
|
||||
[changes objects]
|
||||
(let [fdata (binding [cfeat/*current* #{"components/v2"}]
|
||||
(ctf/make-file-data (uuid/next) uuid/zero))
|
||||
(let [fdata (ctf/make-file-data (uuid/next) uuid/zero)
|
||||
fdata (assoc-in fdata [:pages-index uuid/zero :objects] objects)]
|
||||
(vary-meta changes assoc
|
||||
::file-data fdata
|
||||
|
||||
@ -127,11 +127,11 @@
|
||||
(ctp/make-empty-page {:id page-id :name "Page 1"}))]
|
||||
|
||||
(cond-> (assoc empty-file-data :id file-id)
|
||||
(some? page-id)
|
||||
(some? page)
|
||||
(ctpl/add-page page)
|
||||
|
||||
:always
|
||||
(assoc-in [:options :components-v2] true)))))
|
||||
(update :options assoc :components-v2 true)))))
|
||||
|
||||
(defn make-file
|
||||
[{:keys [id project-id name revn is-shared features
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user