diff --git a/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.ts b/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.ts index f140b04ae..817046687 100644 --- a/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.ts +++ b/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.ts @@ -79,14 +79,7 @@ export class NotificationComponent { } public getStoryUrl(notification: NotificationType): string { - if ( - notification.type === 'stories.status_change' || - notification.type === 'stories.delete' - ) { - return `/project/${notification.content.projects.id}/${notification.content.projects.slug}/stories/${notification.content.story.ref}`; - } else { - return `/project/${notification.content.project.id}/${notification.content.project.slug}/stories/${notification.content.story.ref}`; - } + return `/project/${notification.content.project.id}/${notification.content.project.slug}/stories/${notification.content.story.ref}`; } public markAsRead(event: MouseEvent, notification: NotificationType): void { diff --git a/javascript/libs/data/src/lib/notification.model.ts b/javascript/libs/data/src/lib/notification.model.ts index dfeaee487..59daaeb5a 100644 --- a/javascript/libs/data/src/lib/notification.model.ts +++ b/javascript/libs/data/src/lib/notification.model.ts @@ -41,7 +41,7 @@ export interface NotificationStoryStatusChange extends Notification { type: 'stories.status_change'; content: { story: Pick; - projects: Pick; + project: Pick; status: string; changedBy: Pick; }; @@ -62,7 +62,7 @@ export interface NotificationStoryDelete extends Notification { type: 'stories.delete'; content: { story: Pick; - projects: Pick; + project: Pick; deletedBy: Pick; }; }