fix: don't try to filter notifications if there are none
This commit is contained in:
parent
8cdcfaf071
commit
731506fab7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue