mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 14:44:53 +00:00
fix: Contents removed when switching graph
fixes https://github.com/logseq/db-test/issues/94
This commit is contained in:
@@ -606,7 +606,7 @@
|
||||
(doseq [page pages]
|
||||
(let [page (util/safe-page-name-sanity-lc page)
|
||||
[db-id block-type] (if (= page "contents")
|
||||
["contents" :contents]
|
||||
[(or (:db/id (db/get-page page)) "contents") :contents]
|
||||
[(:db/id (db/get-page page)) :page])]
|
||||
(state/sidebar-add-block! current-repo db-id block-type)))
|
||||
(reset! sidebar-inited? true))))
|
||||
|
||||
Reference in New Issue
Block a user