Skip to content

Commit

Permalink
Fixes Missing Tags in AttachedTags
Browse files Browse the repository at this point in the history
Closes #3320

Signed-off-by: Bruno Meneguello <1322552+bkmeneguello@users.noreply.github.com>
  • Loading branch information
bkmeneguello authored and dougm committed Jan 8, 2024
1 parent 5592467 commit 1c2c1c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vapi/tags/tag_association.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func (t *AttachedTags) UnmarshalJSON(b []byte) error {
var o struct {
ObjectID internal.AssociatedObject `json:"object_id"`
TagIDs []string `json:"tag_ids"`
Tags []Tag `json:"tags,omitempty"`
}
err := json.Unmarshal(b, &o)
if err != nil {
Expand All @@ -339,6 +340,7 @@ func (t *AttachedTags) UnmarshalJSON(b []byte) error {

t.ObjectID = o.ObjectID
t.TagIDs = o.TagIDs
t.Tags = o.Tags

return nil
}
Expand Down

0 comments on commit 1c2c1c7

Please sign in to comment.