This commit is contained in:
Liang Ding 2023-02-16 15:06:11 +08:00
parent af12e702ad
commit f4f08b1fcf
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 13 additions and 10 deletions

View file

@ -170,7 +170,7 @@ func QueryRefRootBlocksByDefRootIDs(defRootIDs []string) (ret map[string][]*Bloc
}
if nil == ret[defRootID] {
ret[defRootID] = []*Block{}
ret[defRootID] = []*Block{&block}
} else {
ret[defRootID] = append(ret[defRootID], &block)
}