Skip to content

Commit 158238b

Browse files
Merge pull request #68 from Financial-Times/fix/unmarshal-custom-code-component-go
Fix CustomCodeComponent Unmarshalling in Go
2 parents cf3b11e + 489c273 commit 158238b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content_tree.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ func (n *BodyBlock) UnmarshalJSON(data []byte) error {
539539
if err := json.Unmarshal(data, &v); err != nil {
540540
return err
541541
}
542+
n.CustomCodeComponent = &v
542543
default:
543544
return fmt.Errorf("failed to unmarshal BodyBlock from %s: %w", data, ErrUnmarshalInvalidNode)
544545
}

0 commit comments

Comments
 (0)