diff --git a/webapp/components/NotificationMenu/NotificationMenu.vue b/webapp/components/NotificationMenu/NotificationMenu.vue index a8609f582..72f539a42 100644 --- a/webapp/components/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/NotificationMenu/NotificationMenu.vue @@ -149,7 +149,7 @@ export default { return { notifications: unionBy( [newNotification], - previousResult.notifications, + previousResult?.notifications, (notification) => notification.id, ).sort((a, b) => new Date(b.updatedAt) - new Date(a.updatedAt)), }