Changeset e48199a for my-react-app/src/components/ReadOnlyMenuList.js
- Timestamp:
- 05/07/25 18:34:01 (11 days ago)
- Branches:
- main
- Parents:
- b67dfd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/components/ReadOnlyMenuList.js
rb67dfd3 re48199a 14 14 const response = await axios.get(`http://localhost:8081/api/restaurant-menu/${restaurantId}`); 15 15 setMenuItems(response.data); 16 setCurrentPage(1); // Reset to first page on restaurant change16 setCurrentPage(1); 17 17 } catch (err) { 18 18 console.error('Failed to fetch menu:', err);
Note:
See TracChangeset
for help on using the changeset viewer.