mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 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:
parent
09f91258a1
commit
f80ae732b9
3 changed files with 14 additions and 14 deletions
|
|
@ -481,10 +481,10 @@ func createDocWithMd(c *gin.Context) {
|
|||
parentID = parentIDArg.(string)
|
||||
}
|
||||
|
||||
showInDocTree := true
|
||||
showInDocTreeArg := arg["showInDocTree"]
|
||||
if nil != showInDocTreeArg {
|
||||
showInDocTree = showInDocTreeArg.(bool)
|
||||
hidden := true
|
||||
hiddenArg := arg["hidden"]
|
||||
if nil != hiddenArg {
|
||||
hidden = hiddenArg.(bool)
|
||||
}
|
||||
|
||||
hPath := arg["path"].(string)
|
||||
|
|
@ -502,7 +502,7 @@ func createDocWithMd(c *gin.Context) {
|
|||
hPath = "/" + hPath
|
||||
}
|
||||
|
||||
id, err := model.CreateWithMarkdown(notebook, hPath, markdown, parentID, showInDocTree)
|
||||
id, err := model.CreateWithMarkdown(notebook, hPath, markdown, parentID, hidden)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -510,7 +510,7 @@ func createDocWithMd(c *gin.Context) {
|
|||
}
|
||||
ret.Data = id
|
||||
|
||||
if !showInDocTree {
|
||||
if !hidden {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue