mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 05:48:49 +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
|
|
@ -65,11 +65,11 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
|||
|
||||
// 批量加载绑定块对应的树
|
||||
var ialIDs []string
|
||||
for cardID, keyValues := range cardsValues {
|
||||
for _, keyValues := range cardsValues {
|
||||
for _, kValues := range keyValues {
|
||||
block := kValues.GetBlockValue()
|
||||
if nil != block && !block.IsDetached {
|
||||
ialIDs = append(ialIDs, cardID)
|
||||
blockVal := kValues.GetBlockValue()
|
||||
if nil != blockVal && !blockVal.IsDetached {
|
||||
ialIDs = append(ialIDs, blockVal.Block.ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue