mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 08:07:16 +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
|
@ -12,8 +12,7 @@
|
|||
[app.common.types.container :as ctn]
|
||||
[app.common.types.file :as ctf]
|
||||
[app.main.store :as st]
|
||||
[app.util.object :as obj]
|
||||
[promesa.core :as p]))
|
||||
[app.util.object :as obj]))
|
||||
|
||||
(defn locate-file
|
||||
[id]
|
||||
|
@ -175,7 +174,7 @@
|
|||
[]
|
||||
(let [ret-v (atom nil)
|
||||
ret-p
|
||||
(p/create
|
||||
(js/Promise.
|
||||
(fn [resolve _]
|
||||
(add-watch
|
||||
ret-v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue