Skip to content

Commit 5b8b867

Browse files
Restyled by prettier
1 parent f053141 commit 5b8b867

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

Phonebook.Frontend/src/app/pages/dashboard/components/team/team.component.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,23 @@ export class TeamComponent implements OnInit, OnDestroy {
2323
public layouts: string[] = Object.values(Layout);
2424
public layout: typeof Layout = Layout;
2525

26-
constructor(private organigramService: OrganigramService) { }
26+
constructor(private organigramService: OrganigramService) {}
2727

2828
public ngOnInit() {
2929
if (this.currentUser != null) {
30-
this.organigramService.getOrganigramTree()
31-
.subscribe(organigram => {
32-
let orgUnitOfUser = this.organigramService.getNodeForUser(this.currentUser, organigram, 0)
33-
if (orgUnitOfUser != null) {
34-
this.teamPersons = [
35-
...orgUnitOfUser.supervisors,
36-
...orgUnitOfUser.assistents,
37-
...orgUnitOfUser.employees,
38-
...orgUnitOfUser.learners,
39-
];
40-
}
41-
});
30+
this.organigramService.getOrganigramTree().subscribe((organigram) => {
31+
let orgUnitOfUser = this.organigramService.getNodeForUser(this.currentUser, organigram, 0);
32+
if (orgUnitOfUser != null) {
33+
this.teamPersons = [
34+
...orgUnitOfUser.supervisors,
35+
...orgUnitOfUser.assistents,
36+
...orgUnitOfUser.employees,
37+
...orgUnitOfUser.learners,
38+
];
39+
}
40+
});
4241
}
4342
}
4443

45-
public ngOnDestroy(): void { }
44+
public ngOnDestroy(): void {}
4645
}

0 commit comments

Comments
 (0)