forked from DebaucheryLibrarian/traxxx
Patched notifications to handle empty result.
This commit is contained in:
parent
ae1b9c0d73
commit
7d974e6b89
|
@ -95,6 +95,14 @@ function initUiActions(store, _router) {
|
|||
offset: (page - 1) * limit,
|
||||
});
|
||||
|
||||
if (!notifications) {
|
||||
return {
|
||||
notifications: [],
|
||||
totalCount: 0,
|
||||
unseenCount: 0,
|
||||
};
|
||||
}
|
||||
|
||||
const curatedNotifications = notifications.nodes.map(notification => curateNotification(notification));
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue