🎨 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:
Daniel 2023-09-27 23:22:36 +08:00
parent 0b1608d2c3
commit a5cefa369b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {