Subscribe au bon endroit pour un refresh
correct de la liste des infos.
This commit is contained in:
@@ -36,7 +36,6 @@ export class GearService extends BaseService {
|
||||
reserveCanopy: reserveCanopy
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers})
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user