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();