fixed nil pointer when no API entry found

This commit is contained in:
Timon Ringwald 2022-11-14 18:07:54 +01:00
parent 8ce29414f4
commit 1591816684

4
api.go
View File

@ -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 {