Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix notification center error on redirect

Bruno Pagno3c758f460c5f
diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts
index 24a31d87524..352407ede45 100644
--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts
+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts
@@ -216,13 +216,6 @@ export class IanCenterService extends UntilDestroyedMixin {
this.onReload.pipe(take(1)).subscribe((collection) => {
this.store.update({ activeCollection: collection });
});
-
- if (facet === 'unread') {
- if (this.selectedNotification?.readIAN) {
- this.goToCenter();
- }
- }
- this.reload.next(true);
}
markAsRead(notifications:ID[]):void {
@@ -240,11 +233,6 @@ export class IanCenterService extends UntilDestroyedMixin {
void this.state.go('work-packages.show', { workPackageId });
}
- goToCenter():void {
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-argument
- void this.state.go(this.state.current.data.baseRoute);
- }
-
showNextNotification():void {
void this
.notifications$