🔥 Remove unused components-v2 binding on fdata creation

This commit is contained in:
Andrey Antukh 2025-03-28 19:20:58 +01:00
parent be9e3fa355
commit b242eb5b32
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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