0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix problem with import zip files

This commit is contained in:
alonso.torres 2024-04-04 15:30:11 +02:00 committed by Andrés Moya
parent 8c72770fec
commit b1e226cdc6

View file

@ -614,14 +614,14 @@
(rx/tap #(rx/end! progress-str)))]))
(defn create-files
[{:keys [features] :as context} files]
[{:keys [system-features] :as context} files]
(let [data (group-by :file-id files)]
(rx/concat
(->> (rx/from files)
(rx/map #(merge context %))
(rx/merge-map (fn [context]
(->> (create-file context features)
(->> (create-file context system-features)
(rx/map #(vector % (first (get data (:file-id context)))))))))
(->> (rx/from files)
@ -694,7 +694,7 @@
(let [context {:project-id project-id
:resolve (resolve-factory)
:features features}
:system-features features}
zip-files (filter #(= "application/zip" (:type %)) files)
binary-files (filter #(= "application/octet-stream" (:type %)) files)]