Skip to content

Commit

Permalink
fix null not iteratable for user/notifications request under certain …
Browse files Browse the repository at this point in the history
…circumstances
  • Loading branch information
manuelsc committed May 31, 2023
1 parent 769c6d6 commit b8a12e0
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 b8a12e0

Please sign in to comment.