From 159def8f11f0197a4b1d8be2b3d2dc2d75e88ebf Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Sun, 25 Aug 2024 23:40:46 +0100 Subject: [PATCH] [MIGRATION] - added some fix after rebase --- .../bulk-actions-dropdown/bulk-actions-dropdown.component.ts | 2 +- .../src/lib/directives/document-list.directive.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.ts b/projects/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.ts index 9c2983e005..1043f5ca84 100644 --- a/projects/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.ts +++ b/projects/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.ts @@ -88,7 +88,7 @@ export class BulkActionsDropdownComponent implements OnInit, OnDestroy { } ngOnDestroy() { - this.onDestroy$.next(); + this.onDestroy$.next(true); this.onDestroy$.complete(); } diff --git a/projects/aca-content/src/lib/directives/document-list.directive.spec.ts b/projects/aca-content/src/lib/directives/document-list.directive.spec.ts index 34ab762b53..e597bad904 100644 --- a/projects/aca-content/src/lib/directives/document-list.directive.spec.ts +++ b/projects/aca-content/src/lib/directives/document-list.directive.spec.ts @@ -141,14 +141,14 @@ describe('DocumentListDirective', () => { it('should reset store selection on `reload` event', () => { documentListDirective.ngOnInit(); - documentListServiceMock.reload$.next(); + documentListServiceMock.reload$.next({}); expect(storeMock.dispatch).toHaveBeenCalledWith(new SetSelectedNodesAction([])); }); it('should reset selection state on `reset` event', () => { documentListDirective.ngOnInit(); - documentListServiceMock.resetSelection$.next(); + documentListServiceMock.resetSelection$.next({}); expect(storeMock.dispatch).toHaveBeenCalledWith(new SetSelectedNodesAction([])); expect(documentListDirective.selectedNode).toBeNull();