Skip to content

Commit

Permalink
[MIGRATION] - added some fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano authored and MichalKinas committed Oct 23, 2024
1 parent f07732b commit e06c00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class BulkActionsDropdownComponent implements OnInit, OnDestroy {
}

ngOnDestroy() {
this.onDestroy$.next();
this.onDestroy$.next(true);
this.onDestroy$.complete();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e06c00a

Please sign in to comment.