Skip to content

Commit

Permalink
🎨 New a row in the database no longer require to create a relevant doc
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 27, 2023
1 parent 0b1608d commit a5cefa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/model/attribute_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a5cefa3

Please sign in to comment.