🎨 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
if !showInDocTree {
return
}
box := model.Conf.Box(notebook)
b, _ := model.GetBlock(id, nil)
p := b.Path
@ -648,7 +652,7 @@ func listDocsByPath(c *gin.Context) {
maxListCount = math.MaxInt
}
}
showHidden := true
showHidden := false
if arg["showHidden"] != nil {
showHidden = arg["showHidden"].(bool)
}