This commit is contained in:
Daniel 2023-12-26 10:59:13 +08:00
parent e768faf6ce
commit 171b915134
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}