mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 00:19:07 -05:00
🐛 Fix incorrect feature context setup on file update
This commit is contained in:
parent
517c913af9
commit
ba01f314dd
1 changed files with 7 additions and 6 deletions
|
@ -184,7 +184,12 @@
|
||||||
{:keys [id file features changes changes-with-metadata] :as params}]
|
{:keys [id file features changes changes-with-metadata] :as params}]
|
||||||
(binding [cfeat/*current* features
|
(binding [cfeat/*current* features
|
||||||
cfeat/*previous* (:features file)]
|
cfeat/*previous* (:features file)]
|
||||||
(let [update-fn (cond-> update-file*
|
|
||||||
|
(let [features (-> features
|
||||||
|
(set/difference cfeat/frontend-only-features)
|
||||||
|
(set/union (:features file)))
|
||||||
|
|
||||||
|
update-fn (cond-> update-file*
|
||||||
(contains? features "fdata/pointer-map")
|
(contains? features "fdata/pointer-map")
|
||||||
(wrap-with-pointer-map-context)
|
(wrap-with-pointer-map-context)
|
||||||
|
|
||||||
|
@ -193,11 +198,7 @@
|
||||||
|
|
||||||
changes (if changes-with-metadata
|
changes (if changes-with-metadata
|
||||||
(->> changes-with-metadata (mapcat :changes) vec)
|
(->> changes-with-metadata (mapcat :changes) vec)
|
||||||
(vec changes))
|
(vec changes))]
|
||||||
|
|
||||||
features (-> features
|
|
||||||
(set/difference cfeat/frontend-only-features)
|
|
||||||
(set/union (:features file)))]
|
|
||||||
|
|
||||||
(when (> (:revn params)
|
(when (> (:revn params)
|
||||||
(:revn file))
|
(:revn file))
|
||||||
|
|
Loading…
Add table
Reference in a new issue