diff --git a/src/app/components/businessunit/businessunit.component.ts b/src/app/components/businessunit/businessunit.component.ts index de93580..9a55608 100644 --- a/src/app/components/businessunit/businessunit.component.ts +++ b/src/app/components/businessunit/businessunit.component.ts @@ -36,10 +36,13 @@ export class BusinessunitComponent implements OnInit { } add(businessunit: Businessunit): void { - this.businessunitService.addBusinessunit(businessunit) - .subscribe(businessunit => { - this.businessunits.push(businessunit); - }); + // let test = this.businessunitService.addBusinessunit(businessunit) + // .subscribe(businessunit => { + // this.businessunits.push(businessunit); + // }); + let test = this.businessunitService.addBusinessunit(businessunit) + + console.log(test.toPromise()); } onSubmit() {