Subscribe au bon endroit pour un refresh

correct de la liste des infos.
This commit is contained in:
Sébastien André
2021-03-29 16:25:35 +02:00
parent b2941cf6d4
commit 09639a4a56
8 changed files with 38 additions and 37 deletions

View File

@@ -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});
}
}