diff --git a/assets/js/ui/actions.js b/assets/js/ui/actions.js index 0864e822..90b348f4 100644 --- a/assets/js/ui/actions.js +++ b/assets/js/ui/actions.js @@ -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 {