Skip to content

Conversation

anupamroy8
Copy link

@anupamroy8
Copy link
Author

@akshaymarch7 please review.

@anupamroy8 anupamroy8 changed the title resolve swiggy api resturant list fetching issue [FIX] resolve swiggy api resturant list fetching issue Sep 16, 2023
@anupamroy8 anupamroy8 changed the title [FIX] resolve swiggy api resturant list fetching issue [FIX] swiggy api resturant list fetching issue Sep 16, 2023
@anupamroy8
Copy link
Author

@akshaymarch7 changes done, please review.

json?.data?.cards[2]?.card?.card?.gridElements?.infoWithStyle?.restaurants
);
for (const cardObj of arrayOfCards) {
if (cardObj?.card?.card && cardObj?.card?.card?.id === restaurantListing) {
Copy link

@akhintheruvath akhintheruvath Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to do cardObj?.card?.card && cardObj?.card?.card?.id ?
We could directly do only cardObj?.card?.card?.id right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swiggy api card containing resturant list keeps on changing.
4 participants