Skip to content

Commit 3e70f56

Browse files
Merge pull request #1119 from MarcelRobitaille/1073-fix-endpoint-recipe-update
Fix the endpoint used for updating recipes
2 parents 1f235ef + 273de1e commit 3e70f56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
[#1105](https://github.com./nextcloud/cookbook/pull/1105) @MarcelRobitaille
2020
- Fix typos and styling issues
2121
[#1112](https://github.com./nextcloud/cookbook/pull/1112) @christianlupus
22+
- Fix API endpoint used for updating recipes
23+
[#1119](https://github.com./nextcloud/cookbook/pull/1119) @MarcelRobitaille
2224

2325
### Maintenance
2426
- Add composer.json to version control to have unique installed dependency versions

src/components/RecipeEdit.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ export default {
605605
const $this = this
606606
607607
const request = (() => {
608-
if (this.recipe_id) {
608+
if (this.$route.params.id ?? false) {
609609
return this.$store.dispatch("updateRecipe", {
610610
recipe: this.recipeWithCorrectedYield,
611611
})

0 commit comments

Comments
 (0)