fix: don't try to filter notifications if there are none

This commit is contained in:
kolaente 2022-02-26 12:33:49 +01:00
parent 8cdcfaf071
commit 731506fab7
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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,