mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-18 00:01:55 +03:00
Fix bug when the first notification is already a grouped one
This commit is contained in:
parent
fc235024aa
commit
ca98863c01
1 changed files with 6 additions and 1 deletions
|
@ -147,7 +147,12 @@ function NotificationsList({ notifications, emptyCopy }) {
|
||||||
// Create new flat list of notifications
|
// Create new flat list of notifications
|
||||||
// Combine sibling notifications based on type and status id, ignore the id
|
// Combine sibling notifications based on type and status id, ignore the id
|
||||||
// Concat all notification.account into an array of _accounts
|
// Concat all notification.account into an array of _accounts
|
||||||
const cleanNotifications = [notifications[0]];
|
const cleanNotifications = [
|
||||||
|
{
|
||||||
|
...notifications[0],
|
||||||
|
_accounts: [notifications[0].account],
|
||||||
|
},
|
||||||
|
];
|
||||||
for (let i = 1, j = 0; i < notifications.length; i++) {
|
for (let i = 1, j = 0; i < notifications.length; i++) {
|
||||||
const notification = notifications[i];
|
const notification = notifications[i];
|
||||||
const cleanNotification = cleanNotifications[j];
|
const cleanNotification = cleanNotifications[j];
|
||||||
|
|
Loading…
Add table
Reference in a new issue