Skip to content

Commit

Permalink
fix: demo page crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 25, 2024
1 parent fbefade commit 60c9b7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deps/db/src/logseq/db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
([repo-or-conn tx-data]
(transact! repo-or-conn tx-data nil))
([repo-or-conn tx-data tx-meta]
(when (and (exists? js/goog)
(aget js/goog "DEBUG"))
(when (or goog.DEBUG
;; test
(exists? js/process))
(assert-no-entities tx-data))
(let [tx-data (map (fn [m]
(if (map? m)
Expand Down

0 comments on commit 60c9b7c

Please sign in to comment.