Skip to content

Commit 77dc283

Browse files
FrancescoMolinarovins01-4science
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-2488 (pull request DSpace#3638)
[DSC-2488] clear up notifications when state reach 0 Approved-by: Andrea Barbasso
2 parents cd2369d + eeca68b commit 77dc283

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
@@ -68,6 +68,7 @@ export class NotificationsBoardComponent implements OnInit, OnDestroy {
6868
.subscribe((state: NotificationsState) => {
6969
if (state.length === 0) {
7070
this.notifications = [];
71+
this.processNotifications = [];
7172
} else if (state.length > this.notifications.length) {
7273
// Add
7374
const newElem = difference(state, [...this.notifications,...this.processNotifications]);

0 commit comments

Comments
 (0)