Skip to content

Commit

Permalink
Add key to loaded data on edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhduracell committed Jan 6, 2025
1 parent 81b4549 commit fc13e99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/modules/use/recipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function useRecipe (key: string) {
const data = result.data() as Recipe
recipe.value = {
...data,
key,
ingredients: (data.ingredients ?? []).map(i => ({ ...i, id: uuidv4() }))
} as Recipe
} else {
Expand Down

0 comments on commit fc13e99

Please sign in to comment.