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,