Skip to content

Commit ec1fb1d

Browse files
authored
fix: Project.Component.Gets always returns nil (#400) (#401)
fix: pass pointer to slice in Project.Component.Gets to fix nil return The Gets method was passing the slice by value instead of by reference to the Call method, causing JSON unmarshaling to fail silently and return nil. This fix ensures the slice is properly populated with component data. Fixes #400
1 parent ae4b4d7 commit ec1fb1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jira/internal/project_component_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (i *internalProjectComponentImpl) Gets(ctx context.Context, projectKeyOrID
121121
}
122122

123123
var components []*model.ComponentScheme
124-
response, err := i.c.Call(request, components)
124+
response, err := i.c.Call(request, &components)
125125
if err != nil {
126126
return nil, response, err
127127
}

0 commit comments

Comments
 (0)