From 22c2235d908926ae3505d9125f299844ed46ba44 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:31:02 +0530 Subject: [PATCH] fix: TypeError: Cannot read properties of null (reading 'assignee') (#8647) Co-authored-by: Muhsin Keloth --- .../components/NotificationPanel.vue | 1 + .../components/NotificationPanelItem.vue | 103 ++++++++++++++++++ .../components/NotificationPanelList.vue | 76 ++----------- 3 files changed, 111 insertions(+), 69 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanelItem.vue diff --git a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanel.vue b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanel.vue index 256ad3758..e5b008d8b 100644 --- a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanel.vue +++ b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanel.vue @@ -50,6 +50,7 @@ :is-loading="uiFlags.isFetching" :on-click-notification="openConversation" :in-last-page="inLastPage" + @close="closeNotificationPanel" />
+
+ +
+
+
+
+
+
+ + {{ + `#${ + notificationItem.primary_actor + ? notificationItem.primary_actor.id + : $t(`NOTIFICATIONS_PAGE.DELETE_TITLE`) + }` + }} + + + {{ + $t( + `NOTIFICATIONS_PAGE.TYPE_LABEL.${notificationItem.notification_type}` + ) + }} + +
+
+ +
+
+
+ + {{ notificationItem.push_message_title }} + +
+ + {{ dynamicTime(notificationItem.created_at) }} + +
+
+ +
+ + + diff --git a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanelList.vue b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanelList.vue index bf2aed625..9ae08b144 100644 --- a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanelList.vue +++ b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationPanelList.vue @@ -1,70 +1,12 @@