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)), } diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js index c3a9369c3..73e9f8ebe 100644 --- a/webapp/graphql/PostMutations.js +++ b/webapp/graphql/PostMutations.js @@ -39,6 +39,7 @@ export default () => { deleted postType author { + id name } categories {