mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix(cli): import-edn of in-app graph hangs
for unexpected transact error. Encountered this while repro-ing https://github.com/logseq/db-test/issues/549. Also fixes UI not displaying any notification
This commit is contained in:
8
deps/outliner/src/logseq/outliner/op.cljs
vendored
8
deps/outliner/src/logseq/outliner/op.cljs
vendored
@@ -161,8 +161,12 @@
|
||||
;; (cljs.pprint/pprint _txs)
|
||||
(if error
|
||||
(reset! *result {:error error})
|
||||
(ldb/transact! conn (vec (concat init-tx block-props-tx misc-tx))
|
||||
(merge {::sqlite-export/imported-data? true} tx-meta)))))
|
||||
(try
|
||||
(ldb/transact! conn (vec (concat init-tx block-props-tx misc-tx))
|
||||
(merge {::sqlite-export/imported-data? true} tx-meta))
|
||||
(catch :default e
|
||||
(js/console.error "Unexpected Import EDN error:" e)
|
||||
(reset! *result {:error (str "Unexpected Import EDN error: " (pr-str (ex-message e)))}))))))
|
||||
|
||||
(defn ^:large-vars/cleanup-todo apply-ops!
|
||||
[repo conn ops date-formatter opts]
|
||||
|
||||
Reference in New Issue
Block a user