This commit is contained in:
Liang Ding
2023-02-16 15:06:11 +08:00
parent af12e702ad
commit f4f08b1fcf
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)
}