Skip to content

Commit

Permalink
Fix glass saving
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Aug 15, 2023
1 parent 0fef660 commit a6505ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Cocktail/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export default {
if (scraped) {
localStorage.removeItem('scrapeResult');
const parsedScrapeResult = JSON.parse(scraped);
console.log(parsedScrapeResult)
this.cocktail = parsedScrapeResult
Expand Down Expand Up @@ -367,7 +368,7 @@ export default {
utensils: this.cocktail.utensils,
images: [],
tags: this.cocktail.tags.filter(tag => tag.name != '').map(tag => tag.name),
glass_id: this.glassId,
glass_id: this.cocktail.glass.id,
ingredients: this.cocktail.ingredients
.filter(i => i.ingredient_id != null)
.map((cIngredient) => {
Expand Down

0 comments on commit a6505ac

Please sign in to comment.