Skip to content

Commit 3df9b53

Browse files
committed
Update Notifications.vue component, fix filtering logic to prevent endless spinner
1 parent 9c0d0a3 commit 3df9b53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/assets/components/sections/Notifications.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,16 @@
234234
return;
235235
}
236236
let data = res.data.filter(n => {
237-
if(n.type == 'share' && !n.status) {
237+
if(n.type == 'share' && (!n.status || !n.account)) {
238238
return false;
239239
}
240-
if(n.type == 'comment' && !n.status) {
240+
if(n.type == 'comment' && (!n.status || !n.account)) {
241241
return false;
242242
}
243-
if(n.type == 'mention' && !n.status) {
243+
if(n.type == 'mention' && (!n.status || !n.account)) {
244244
return false;
245245
}
246-
if(n.type == 'favourite' && !n.status) {
246+
if(n.type == 'favourite' && (!n.status || !n.account)) {
247247
return false;
248248
}
249249
if(n.type == 'follow' && !n.account) {

0 commit comments

Comments
 (0)