🎨 Subdocuments created by the database are not displayed in the doc tree https://github.com/siyuan-note/siyuan/issues/9091

This commit is contained in:
Daniel 2023-09-05 16:45:37 +08:00
parent 682415ae80
commit 02a4eaa73b
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -510,6 +510,10 @@ func createDocWithMd(c *gin.Context) {
} }
ret.Data = id ret.Data = id
if !showInDocTree {
return
}
box := model.Conf.Box(notebook) box := model.Conf.Box(notebook)
b, _ := model.GetBlock(id, nil) b, _ := model.GetBlock(id, nil)
p := b.Path p := b.Path
@ -648,7 +652,7 @@ func listDocsByPath(c *gin.Context) {
maxListCount = math.MaxInt maxListCount = math.MaxInt
} }
} }
showHidden := true showHidden := false
if arg["showHidden"] != nil { if arg["showHidden"] != nil {
showHidden = arg["showHidden"].(bool) showHidden = arg["showHidden"].(bool)
} }