Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-01-27 20:17:07 +08:00
commit 483a1406a3

View file

@ -318,7 +318,12 @@ func getRefText(c *gin.Context) {
id := arg["id"].(string)
model.WaitForWritingFiles()
ret.Data = model.GetBlockRefText(id)
refText := model.GetBlockRefText(id)
if "" == refText {
// 空块返回 id https://github.com/siyuan-note/siyuan/issues/10259
refText = id
}
ret.Data = refText
}
func getRefIDs(c *gin.Context) {