mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
7e935ee61f
commit
f5a1309481
1 changed files with 5 additions and 4 deletions
|
|
@ -1073,12 +1073,13 @@ func CreateWithMarkdown(tags, boxID, hPath, md, parentID, id string, withMath bo
|
|||
SetBlockAttrs(retID, nameValues)
|
||||
|
||||
FlushTxQueue()
|
||||
docPath, _, err := GetPathByID(retID)
|
||||
if err != nil {
|
||||
logging.LogWarnf("get path by id [%s] failed: %s", retID, err)
|
||||
|
||||
bt := treenode.GetBlockTree(retID)
|
||||
if nil == bt {
|
||||
logging.LogWarnf("get block tree by id [%s] failed after create", retID)
|
||||
return
|
||||
}
|
||||
box.addMinSort(path.Dir(docPath), retID)
|
||||
box.addMinSort(path.Dir(bt.Path), retID)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue