mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15524
This commit is contained in:
parent
c640bfd91b
commit
7b8d163723
3 changed files with 16 additions and 15 deletions
|
|
@ -99,9 +99,9 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
|
|||
// 批量获取块属性以提升性能
|
||||
var ialIDs []string
|
||||
for _, row := range ret.Rows {
|
||||
block := row.GetBlockValue()
|
||||
if nil != block && !block.IsDetached {
|
||||
ialIDs = append(ialIDs, row.ID)
|
||||
blockVal := row.GetBlockValue()
|
||||
if nil != blockVal && !blockVal.IsDetached {
|
||||
ialIDs = append(ialIDs, blockVal.Block.ID)
|
||||
}
|
||||
}
|
||||
ials := BatchGetBlockAttrs(ialIDs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue