Skip to content

Commit

Permalink
feat(demo): load navigation tree on init (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jun 14, 2024
1 parent 1ade870 commit 546fbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('SidebarContainer', () => {
it('should dispatch a DaffNavigationTreeLoad', () => {
spyOn(navFacade, 'dispatch');
component.ngOnInit();
expect(navFacade.dispatch).toHaveBeenCalledWith(new DaffNavigationLoad('2'));
expect(navFacade.dispatch).toHaveBeenCalledWith(new DaffNavigationLoad());
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class SidebarContainer implements OnInit {
this.tree$ = this.navigationFacade.tree$;
this.treeLoading$ = this.navigationFacade.loading$;
this.treeErrors$ = this.navigationFacade.errors$;
this.navigationFacade.dispatch(new DaffNavigationLoad('2'));
this.navigationFacade.dispatch(new DaffNavigationLoad());
}

onClose() {
Expand Down

0 comments on commit 546fbe3

Please sign in to comment.