Subscribe au bon endroit pour un refresh
correct de la liste des infos.
This commit is contained in:
@@ -25,9 +25,8 @@ export class AircraftService extends BaseService {
|
||||
imageData: dataImg
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/Aircraft`,
|
||||
bodyNewAircraft,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/Aircraft`,
|
||||
bodyNewAircraft,
|
||||
{ headers: this.headers });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user