1 Commits

Author SHA1 Message Date
1591816684 fixed nil pointer when no API entry found 2022-11-14 18:07:54 +01:00

4
api.go
View File

@ -90,6 +90,10 @@ func requestPaged[R any](api *Api, ctx context.Context, query string, vars map[s
return return
} }
if resp.Data.Page == nil {
return
}
for _, value := range resp.Data.Page.Data() { for _, value := range resp.Data.Page.Data() {
value := value value := value
select { select {