🐛 Fix problem with promises in plugins

This commit is contained in:
alonso.torres 2024-11-04 17:12:45 +01:00
parent 59050a7bc6
commit 6c0dce580d
7 changed files with 23 additions and 30 deletions

View file

@ -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