fixed nil pointer when no API entry found
This commit is contained in:
4
api.go
4
api.go
@ -90,6 +90,10 @@ func requestPaged[R any](api *Api, ctx context.Context, query string, vars map[s
|
||||
return
|
||||
}
|
||||
|
||||
if resp.Data.Page == nil {
|
||||
return
|
||||
}
|
||||
|
||||
for _, value := range resp.Data.Page.Data() {
|
||||
value := value
|
||||
select {
|
||||
|
Reference in New Issue
Block a user