Customer eagerLoading set to 1

This commit is contained in:
Lorenz Hilpert
2021-06-30 10:00:44 +02:00
parent c748bb8f50
commit 43876e2ceb

View File

@@ -83,7 +83,7 @@ export class CustomerDetailsComponent implements OnInit {
this.customerId$ = this.activatedRoute.params.pipe(map((params) => Number(params['customerId'])));
this.customer$ = this.customerId$.pipe(
switchMap((customerId) => this.customerDetailsService.getCustomer(customerId, 2)),
switchMap((customerId) => this.customerDetailsService.getCustomer(customerId, 1)),
map(({ result }) => result),
map((customer) => {
this.updateBreadcrumbName(customer);