mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 18:07:14 +02:00
✨ Clean frontend and backend features on exportation
This commit is contained in:
parent
b7573c0b72
commit
47d28758d7
3 changed files with 20 additions and 14 deletions
|
@ -134,6 +134,16 @@
|
|||
(update :data feat.fdata/process-pointers deref)
|
||||
(update :data feat.fdata/process-objects (partial into {}))))))))
|
||||
|
||||
(defn clean-file-features
|
||||
[file]
|
||||
(update file :features (fn [features]
|
||||
(if (set? features)
|
||||
(-> features
|
||||
(cfeat/migrate-legacy-features)
|
||||
(set/difference cfeat/frontend-only-features)
|
||||
(set/difference cfeat/backend-only-features))
|
||||
#{}))))
|
||||
|
||||
(defn get-project
|
||||
[cfg project-id]
|
||||
(db/get cfg :project {:id project-id}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue