mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
fix: setting default sidebar pages on config #9950
This commit is contained in:
committed by
Gabriel Horner
parent
49a1f1536a
commit
6276e182b2
@@ -587,7 +587,7 @@
|
||||
(let [page (util/safe-page-name-sanity-lc page)
|
||||
[db-id block-type] (if (= page "contents")
|
||||
["contents" :contents]
|
||||
[page :page])]
|
||||
[(:db/id (db/pull [:block/name page])) :page])]
|
||||
(state/sidebar-add-block! current-repo db-id block-type)))
|
||||
(reset! sidebar-inited? true))))
|
||||
(when (state/mobile?)
|
||||
|
||||
Reference in New Issue
Block a user