Skip to content

Commit

Permalink
- fix js/ in cljc file
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Jul 26, 2023
1 parent 87ccd95 commit b9ea32e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion editor2/src/main/cells/async.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@

(def error :error)
(def loading? :loading)
(defn promise? [x] (instance? js/Promise x))


2 changes: 1 addition & 1 deletion editor2/src/main/cells/impl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(let [cell r/*owner*]
#?(:cljs
(try (let [^js v (f r/*owner*)]
(if (a/promise? v)
(if (instance? js/Promise v)
(do
(a/loading! cell)
(-> v
Expand Down

0 comments on commit b9ea32e

Please sign in to comment.