mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Clean code
This commit is contained in:
parent
0b5a83d55f
commit
c7746d1399
2 changed files with 6 additions and 1 deletions
|
|
@ -376,7 +376,10 @@ func getRefText(c *gin.Context) {
|
|||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
model.FlushTxQueue()
|
||||
if util.InvalidIDPattern(id, ret) {
|
||||
return
|
||||
}
|
||||
|
||||
refText := model.GetBlockRefText(id)
|
||||
if "" == refText {
|
||||
// 空块返回 id https://github.com/siyuan-note/siyuan/issues/10259
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue