diff --git a/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts b/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts index f035dd1..8f576cc 100644 --- a/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts @@ -46,7 +46,8 @@ export class ListOfGearsComponent implements OnInit { } getListOfGears() { - this.serviceApi.getListOfGears().subscribe(data => { + this.serviceApi.getListOfGears() + .subscribe(data => { setTimeout(() => { this.dataSourceTable = new MatTableDataSource(data); this.dataSourceTable.paginator = this.paginator; diff --git a/Front/skydivelogs-app/src/services/gear.service.ts b/Front/skydivelogs-app/src/services/gear.service.ts index 2921b50..8af9537 100644 --- a/Front/skydivelogs-app/src/services/gear.service.ts +++ b/Front/skydivelogs-app/src/services/gear.service.ts @@ -38,10 +38,7 @@ export class GearService extends BaseService { reserveCanopy: reserveCanopy }; - this.http - .post(`${this.apiUrl}/Gear`, bodyNewGear, { - headers: this.headers - }) - .subscribe(data => console.log(data)); + this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers}) + .subscribe(data => console.log(data)); } }