Skip to content

Commit

Permalink
Merge pull request #226 from gobitfly/nobids/fix-iteratable
Browse files Browse the repository at this point in the history
Fx null not iteratable for user/notifications request under certain conditions
  • Loading branch information
manuelsc authored May 31, 2023
2 parents 769c6d6 + b8a12e0 commit bb4c11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/requests/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class NotificationGetRequest extends APIRequest<NotificationGetResponse>
}

parse(response: Response): NotificationGetResponse[] {
if (!response || !response.data || !response.data.data) return null
if (!response || !response.data || !response.data.data) return []
return response.data.data as NotificationGetResponse[]
}
}
Expand Down

0 comments on commit bb4c11e

Please sign in to comment.