From b8a12e02cbde3b8dcc027aac26ba7e7265d1ca67 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 31 May 2023 09:59:57 +0200 Subject: [PATCH] fix null not iteratable for user/notifications request under certain circumstances --- src/app/requests/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/requests/requests.ts b/src/app/requests/requests.ts index 3002b980..bbe287c8 100644 --- a/src/app/requests/requests.ts +++ b/src/app/requests/requests.ts @@ -542,7 +542,7 @@ export class NotificationGetRequest extends APIRequest } 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[] } }