🐛 搜索处于折叠状态的块时未聚焦显示结果 Fix https://github.com/siyuan-note/siyuan/issues/7252

This commit is contained in:
Liang Ding 2023-02-03 23:37:46 +08:00
parent aa74cacdb0
commit 3fb296c88c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 17 additions and 13 deletions

View file

@ -154,19 +154,7 @@ func checkBlockFold(c *gin.Context) {
}
id := arg["id"].(string)
b, err := model.GetBlock(id, nil)
if errors.Is(err, filelock.ErrUnableAccessFile) {
ret.Code = 2
ret.Data = id
return
}
if errors.Is(err, model.ErrIndexing) {
ret.Code = 0
ret.Data = false
return
}
ret.Data = nil != b && "1" == b.IAL["fold"]
ret.Data = model.IsBlockFolded(id)
}
func checkBlockExist(c *gin.Context) {