mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 Fix path retrieval in CreateWithMarkdown function (#16268)
fix https://github.com/siyuan-note/siyuan/issues/16026
This commit is contained in:
parent
b1a00c6ebd
commit
15674d67f7
1 changed files with 6 additions and 1 deletions
|
|
@ -1073,7 +1073,12 @@ func CreateWithMarkdown(tags, boxID, hPath, md, parentID, id string, withMath bo
|
||||||
SetBlockAttrs(retID, nameValues)
|
SetBlockAttrs(retID, nameValues)
|
||||||
|
|
||||||
FlushTxQueue()
|
FlushTxQueue()
|
||||||
box.addMinSort(path.Dir(hPath), retID)
|
docPath, _, err := GetPathByID(retID)
|
||||||
|
if err != nil {
|
||||||
|
logging.LogWarnf("get path by id [%s] failed: %s", retID, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
box.addMinSort(path.Dir(docPath), retID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue