mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 19:28:26 +02:00
🐛 Fix file builder hangs on export
This commit is contained in:
parent
22800e71df
commit
9064b9f849
2 changed files with 4 additions and 3 deletions
|
@ -265,12 +265,12 @@
|
|||
(p/create
|
||||
(fn [resolve reject]
|
||||
(->> (export-file file)
|
||||
(rx/filter #(not= (:type %) :progress))
|
||||
(rx/take 1)
|
||||
(rx/subs!
|
||||
(fn [value]
|
||||
(when (not (contains? value :type))
|
||||
(let [[_ export-blob] value]
|
||||
(resolve export-blob))))
|
||||
(let [[_ export-blob] value]
|
||||
(resolve export-blob)))
|
||||
reject))))))
|
||||
|
||||
(defn create-file-export [^string name]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue