mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Better checks
This commit is contained in:
parent
4937c5f77e
commit
cf2461add5
1 changed files with 6 additions and 2 deletions
|
@ -29,8 +29,12 @@ export function fixNotifications(notifications) {
|
|||
}
|
||||
|
||||
export function massageNotifications2(notifications) {
|
||||
if (notifications?.accounts) {
|
||||
const { accounts, notificationGroups, statuses } = notifications;
|
||||
if (notifications?.notificationGroups) {
|
||||
const {
|
||||
accounts = [],
|
||||
notificationGroups = [],
|
||||
statuses = [],
|
||||
} = notifications;
|
||||
return notificationGroups.map((group) => {
|
||||
const { sampleAccountIds, statusId } = group;
|
||||
const sampleAccounts =
|
||||
|
|
Loading…
Reference in a new issue