Browse Source

fix: debug check failing importer

Only failed in prod. Fixes https://github.com/logseq/db-test/issues/206
Gabriel Horner 9 months ago
parent
commit
0db34bc921
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deps/db/src/logseq/db.cljs

+ 1 - 1
deps/db/src/logseq/db.cljs

@@ -58,7 +58,7 @@
    (transact! repo-or-conn tx-data nil))
   ([repo-or-conn tx-data tx-meta]
    (when (or (exists? js/process)
-             (and (exists? js/window) js/window.goog.DEBUG))
+             (and (exists? js/goog) js/goog.DEBUG))
      (assert-no-entities tx-data))
    (let [tx-data (map (fn [m]
                         (if (map? m)