fix: don't try to filter notifications if there are none
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-02-26 12:33:49 +01:00
parent 8cdcfaf071
commit 731506fab7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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,