fix(frontend): Fix all type issues

This commit is contained in:
2025-11-15 08:40:09 +01:00
parent 1c8815d4ce
commit daf619d6eb
16 changed files with 88 additions and 56 deletions

View File

@@ -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