mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-10 02:38:50 +01:00
🧑💻 Improve kernel API appendAttributeViewDetachedBlocksWithValues
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e887d70a18
commit
f94328034e
1 changed files with 3 additions and 0 deletions
|
|
@ -1148,6 +1148,9 @@ func AppendAttributeViewDetachedBlocksWithValues(avID string, blocksValues [][]*
|
|||
var blockIDs []string
|
||||
for _, blockValues := range blocksValues {
|
||||
blockID := ast.NewNodeID()
|
||||
if v := blockValues[0]; "" != v.BlockID {
|
||||
blockID = v.BlockID
|
||||
}
|
||||
blockIDs = append(blockIDs, blockID)
|
||||
for _, v := range blockValues {
|
||||
keyValues, _ := attrView.GetKeyValues(v.KeyID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue