Update Notifications.vue component, fix filtering logic to prevent endless spinner

This commit is contained in:
Daniel Supernault 2023-06-02 05:36:00 -06:00
parent 69a53d0fa1
commit 6197a7b1e1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -301,16 +301,16 @@
return;
}
let data = res.data.filter(n => {
if(n.type == 'share' && !n.status) {
if(n.type == 'share' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'comment' && !n.status) {
if(n.type == 'comment' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'mention' && !n.status) {
if(n.type == 'mention' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'favourite' && !n.status) {
if(n.type == 'favourite' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'follow' && !n.account) {