Skip to content

Commit

Permalink
Merged bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nishadtardalkar committed Nov 1, 2024
1 parent 927d36b commit 3c572a2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Code/frontend/src/components/SearchBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ const SearchBlock = (props) => {
ingredients: items[index].ingredients,
};
const response = await axios.post('https://get-detailed-recipe-3rhjd2q7dq-uc.a.run.app', data);
<<<<<<< HEAD
const allIngredients = response.data.ingredients.map(ingredient => ingredient.trim());
response.data.ingredients = allIngredients;
=======
>>>>>>> 7a25f1c3dff1a3c05a7fc40abd5e6fa6d48ce539
setDetailedItem(response.data);
}

Expand All @@ -128,10 +125,7 @@ const SearchBlock = (props) => {

doc.setFontSize(12);
let yOffset = 50;
<<<<<<< HEAD
console.log("inside generating pdf:" + ingredients);
=======
>>>>>>> 7a25f1c3dff1a3c05a7fc40abd5e6fa6d48ce539
ingredients.forEach((ingredient, index) => {
doc.text(`${index + 1}. ${ingredient}`, 20, yOffset);
yOffset += 10;
Expand Down

0 comments on commit 3c572a2

Please sign in to comment.