mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 05:34:07 +00:00
fix: application crash when re-indexing an MD graph
fixes https://github.com/logseq/db-test/issues/266
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
(defn- sub-journals
|
||||
[]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(-> (react/q repo
|
||||
[:frontend.worker.react/journals]
|
||||
{:query-fn (fn [_]
|
||||
(p/let [{:keys [data]} (views/<load-view-data nil {:journals? true})]
|
||||
(remove nil? data)))}
|
||||
nil)
|
||||
util/react)))
|
||||
(some-> (react/q repo
|
||||
[:frontend.worker.react/journals]
|
||||
{:query-fn (fn [_]
|
||||
(p/let [{:keys [data]} (views/<load-view-data nil {:journals? true})]
|
||||
(remove nil? data)))}
|
||||
nil)
|
||||
util/react)))
|
||||
|
||||
(rum/defc all-journals < rum/reactive db-mixins/query
|
||||
[]
|
||||
|
||||
@@ -828,9 +828,10 @@
|
||||
#?(:cljs
|
||||
(defn react
|
||||
[ref]
|
||||
(if rum/*reactions*
|
||||
(rum/react ref)
|
||||
@ref)))
|
||||
(when ref
|
||||
(if rum/*reactions*
|
||||
(rum/react ref)
|
||||
@ref))))
|
||||
|
||||
#?(:cljs
|
||||
(def time-ms common-util/time-ms))
|
||||
|
||||
Reference in New Issue
Block a user