mirror of https://github.com/logseq/logseq
enhance: display contents in the right sidebar if empty
parent
b1b435e3ca
commit
0ac53160e4
|
@ -209,6 +209,9 @@
|
|||
(rum/defcs sidebar < rum/reactive
|
||||
[state]
|
||||
(let [blocks (state/sub :sidebar/blocks)
|
||||
blocks (if (empty? blocks)
|
||||
[[(state/get-current-repo) "contents" :contents nil]]
|
||||
blocks)
|
||||
sidebar-open? (state/sub :ui/sidebar-open?)
|
||||
repo (state/sub :git/current-repo)
|
||||
match (state/sub :route-match)
|
||||
|
|
Loading…
Reference in New Issue