mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve kernel stability https://github.com/siyuan-note/siyuan/issues/9912
This commit is contained in:
parent
e768faf6ce
commit
171b915134
1 changed files with 4 additions and 0 deletions
|
|
@ -285,6 +285,10 @@ func labelBlocksByKeyword(keyword string) (ret map[string]TagBlocks) {
|
|||
sqlBlocks := sql.GetBlocks(blockIDs)
|
||||
blockMap := map[string]*sql.Block{}
|
||||
for _, block := range sqlBlocks {
|
||||
if nil == block {
|
||||
continue
|
||||
}
|
||||
|
||||
blockMap[block.ID] = block
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue