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

Only show unique actors

Oliver Günther75386061c040
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
index 6b3b9d853dd..a51b09219e8 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
@@ -132,7 +132,7 @@ export class InAppNotificationEntryComponent implements OnInit {
}
private buildActors() {
- this.actors = this
+ const actors = this
.aggregatedNotifications
.map((notification) => {
const { actor } = notification._links;
@@ -147,6 +147,8 @@ export class InAppNotificationEntryComponent implements OnInit {
};
})
.filter((actor) => actor !== null) as PrincipalLike[];
+
+ this.actors = _.uniqBy(actors, (item) => item.href);
}
private buildTranslatedReason() {