mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15600
This commit is contained in:
parent
7d91781e8c
commit
ed4cc1faf6
2 changed files with 8 additions and 0 deletions
|
|
@ -1275,6 +1275,10 @@ func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*AvSearch
|
||||||
|
|
||||||
trees := filesys.LoadTrees(blockIDs)
|
trees := filesys.LoadTrees(blockIDs)
|
||||||
for _, avBlock := range avBlocks {
|
for _, avBlock := range avBlocks {
|
||||||
|
if 1 > len(avBlock.BlockIDs) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
parentResult := buildSearchAttributeViewResult(avSearchTmpResults, avBlock.BlockIDs[0], trees, excludeAvIDs)
|
parentResult := buildSearchAttributeViewResult(avSearchTmpResults, avBlock.BlockIDs[0], trees, excludeAvIDs)
|
||||||
if nil == parentResult {
|
if nil == parentResult {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,10 @@ func BatchGetMirrorAttrViewBlocks(avIDs []string) (ret []*AvBlock) {
|
||||||
for blockID := range bts {
|
for blockID := range bts {
|
||||||
blockIDs = append(blockIDs, blockID)
|
blockIDs = append(blockIDs, blockID)
|
||||||
}
|
}
|
||||||
|
if 1 > len(blockIDs) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
avBlock := &AvBlock{
|
avBlock := &AvBlock{
|
||||||
AvID: avID,
|
AvID: avID,
|
||||||
BlockIDs: blockIDs,
|
BlockIDs: blockIDs,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue