update getting file recipe

This commit is contained in:
Kenta420 2023-10-24 18:01:52 +07:00
parent ea506b8128
commit 3bfbbd778a
10 changed files with 243 additions and 152 deletions

View file

@ -188,12 +188,13 @@ export class RecipeDetailsComponent implements OnInit {
console.log('confirm save');
// TODO: update value in targeted recipe
this._recipeService.editChanges(
this._recipeService.getCurrentVersion(),
this._recipeService.getCurrentCountry(),
this._recipeService.getCurrentFile(),
{
...this.recipeDetail
...this.recipeDetail,
}
);
console.log("Sending changes")
console.log('Sending changes');
this._router.navigate(['/recipes']);
},
};