Skip to content

Commit 7cdeb29

Browse files
FrancescoMolinarovins01-4science
authored andcommitted
Merged in task/dspace-cris-2024_02_x/DSC-2488 (pull request DSpace#3637)
[DSC-2488] clear up notifications when state reach 0 Approved-by: Andrea Barbasso
2 parents 18defe9 + 1fffb3b commit 7cdeb29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/shared/notifications/notifications-board/notifications-board.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class NotificationsBoardComponent implements OnInit, OnDestroy {
8888
.subscribe((state: NotificationsState) => {
8989
if (state.length === 0) {
9090
this.notifications = [];
91+
this.processNotifications = [];
9192
} else if (state.length > this.notifications.length) {
9293
// Add
9394
const newElem = differenceWith(state, [...this.notifications,...this.processNotifications], this.byId);

0 commit comments

Comments
 (0)