mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +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) {
|
export function massageNotifications2(notifications) {
|
||||||
if (notifications?.accounts) {
|
if (notifications?.notificationGroups) {
|
||||||
const { accounts, notificationGroups, statuses } = notifications;
|
const {
|
||||||
|
accounts = [],
|
||||||
|
notificationGroups = [],
|
||||||
|
statuses = [],
|
||||||
|
} = notifications;
|
||||||
return notificationGroups.map((group) => {
|
return notificationGroups.map((group) => {
|
||||||
const { sampleAccountIds, statusId } = group;
|
const { sampleAccountIds, statusId } = group;
|
||||||
const sampleAccounts =
|
const sampleAccounts =
|
||||||
|
|
Loading…
Add table
Reference in a new issue