mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🐛 Fix NPE https://ld246.com/article/1730909507718
This commit is contained in:
parent
96830dd67d
commit
a134f0adb4
1 changed files with 9 additions and 6 deletions
|
|
@ -261,12 +261,15 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
|
||||||
}
|
}
|
||||||
if nil != destAv {
|
if nil != destAv {
|
||||||
blocks := map[string]*av.Value{}
|
blocks := map[string]*av.Value{}
|
||||||
for _, blockValue := range destAv.GetBlockKeyValues().Values {
|
blockValues := destAv.GetBlockKeyValues()
|
||||||
blocks[blockValue.BlockID] = blockValue
|
if nil != blockValues {
|
||||||
}
|
for _, blockValue := range blockValues.Values {
|
||||||
for _, blockID := range cell.Value.Relation.BlockIDs {
|
blocks[blockValue.BlockID] = blockValue
|
||||||
if val := blocks[blockID]; nil != val {
|
}
|
||||||
cell.Value.Relation.Contents = append(cell.Value.Relation.Contents, val)
|
for _, blockID := range cell.Value.Relation.BlockIDs {
|
||||||
|
if val := blocks[blockID]; nil != val {
|
||||||
|
cell.Value.Relation.Contents = append(cell.Value.Relation.Contents, val)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue