mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
🐛 预览虚拟引用报错 Fix https://github.com/siyuan-note/siyuan/issues/5933
This commit is contained in:
parent
86276e414b
commit
a8b6b1b37b
4 changed files with 7 additions and 2 deletions
|
|
@ -144,6 +144,9 @@ func GetBlockRefIDsByFileAnnotationID(id string) (refIDs, refTexts []string) {
|
|||
func GetBlockDefIDsByRefText(refText string, excludeIDs []string) (ret []string) {
|
||||
ret = sql.QueryBlockDefIDsByRefText(refText, excludeIDs)
|
||||
sort.Sort(sort.Reverse(sort.StringSlice(ret)))
|
||||
if 1 > len(ret) {
|
||||
ret = []string{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue