fix(frontend): Fix all type issues
This commit is contained in:
@@ -92,7 +92,7 @@ export const useNotification = () => {
|
||||
try {
|
||||
await markNotificationAsRead(notificationId, organizationId.value)
|
||||
const index = notifications.value.findIndex((n) => n.id === notificationId)
|
||||
if (index !== -1) {
|
||||
if (index !== -1 && notifications.value[index]) {
|
||||
notifications.value[index].isRead = true
|
||||
}
|
||||
// Remove from unread notifications
|
||||
|
||||
Reference in New Issue
Block a user