mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 New a row in the database no longer require to create a relevant doc https://github.com/siyuan-note/siyuan/issues/9294
This commit is contained in:
parent
0b1608d2c3
commit
a5cefa369b
1 changed files with 5 additions and 1 deletions
|
|
@ -444,7 +444,11 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
|
|||
}
|
||||
}
|
||||
|
||||
value := &av.Value{ID: ast.NewNodeID(), KeyID: blockValues.Key.ID, BlockID: blockID, Type: av.KeyTypeBlock, IsDetached: operation.IsDetached, Block: &av.ValueBlock{ID: blockID, Content: getNodeRefText(node)}}
|
||||
var content string
|
||||
if !operation.IsDetached {
|
||||
content = getNodeRefText(node)
|
||||
}
|
||||
value := &av.Value{ID: ast.NewNodeID(), KeyID: blockValues.Key.ID, BlockID: blockID, Type: av.KeyTypeBlock, IsDetached: operation.IsDetached, Block: &av.ValueBlock{ID: blockID, Content: content}}
|
||||
blockValues.Values = append(blockValues.Values, value)
|
||||
|
||||
if !operation.IsDetached {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue