mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 06:46:09 +01:00
🎨 Distinguishing between a referenced definition block that does not exist or one that is not indexed https://github.com/siyuan-note/siyuan/issues/16850
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
ddf35ec7df
commit
05380060fc
18 changed files with 166 additions and 56 deletions
|
|
@ -665,6 +665,10 @@ func getBlockInfo(c *gin.Context) {
|
|||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(275)
|
||||
return
|
||||
} else if errors.Is(err, model.ErrBoxUnindexed) {
|
||||
ret.Code = -1
|
||||
ret.Msg = ""
|
||||
return
|
||||
}
|
||||
|
||||
block, _ := model.GetBlock(id, tree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue