From 731506fab756ea8739b378485f94810799a774d5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 26 Feb 2022 12:33:49 +0100 Subject: [PATCH] fix: don't try to filter notifications if there are none --- src/components/notifications/notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 73dedd8f..f70a8ae9 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -81,7 +81,7 @@ export default { return this.notifications.filter(n => n.readAt === null).length }, notifications() { - return this.allNotifications.filter(n => n.name !== '') + return this.allNotifications ? this.allNotifications.filter(n => n.name !== '') : [] }, ...mapState({ userInfo: state => state.auth.info,