mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 18:46:11 +02:00
🐛 Fix problem with promises in plugins
This commit is contained in:
parent
59050a7bc6
commit
6c0dce580d
7 changed files with 23 additions and 30 deletions
|
@ -20,8 +20,7 @@
|
|||
[app.plugins.utils :as u]
|
||||
[app.util.http :as http]
|
||||
[app.util.object :as obj]
|
||||
[beicon.v2.core :as rx]
|
||||
[promesa.core :as p]))
|
||||
[beicon.v2.core :as rx]))
|
||||
|
||||
(deftype FileProxy [$plugin $id]
|
||||
Object
|
||||
|
@ -128,7 +127,7 @@
|
|||
file (u/proxy->file self)
|
||||
features (features/get-team-enabled-features @st/state)
|
||||
team-id (:current-team-id @st/state)]
|
||||
(p/create
|
||||
(js/Promise.
|
||||
(fn [resolve reject]
|
||||
(->> (uw/ask-many!
|
||||
{:cmd export-cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue