mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 08:26:37 +02:00
🐛 Properly handle storage features on binfile import
This commit is contained in:
parent
3280a6853e
commit
523539e403
2 changed files with 55 additions and 26 deletions
|
@ -15,6 +15,7 @@
|
|||
[app.common.spec :as us]
|
||||
[app.common.types.file :as ctf]
|
||||
[app.common.types.shape-tree :as ctt]
|
||||
[app.config :as cf]
|
||||
[app.db :as db]
|
||||
[app.db.sql :as sql]
|
||||
[app.loggers.audit :as-alias audit]
|
||||
|
@ -43,7 +44,13 @@
|
|||
"storage/pointer-map"
|
||||
"components/v2"})
|
||||
|
||||
(def default-features #{})
|
||||
(def default-features
|
||||
(cond-> #{}
|
||||
(contains? cf/flags :fdata-storage-pointer-map)
|
||||
(conj "storage/pointer-map")
|
||||
|
||||
(contains? cf/flags :fdata-storage-objects-map)
|
||||
(conj "storage/objects-map")))
|
||||
|
||||
;; --- SPECS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue