Ignore:
Timestamp:
05/07/25 18:34:01 (11 days ago)
Author:
Aleksandar Panovski <apano77@…>
Branches:
main
Parents:
b67dfd3
Message:

Final version for DB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-react-app/src/components/ReadOnlyMenuList.js

    rb67dfd3 re48199a  
    1414                const response = await axios.get(`http://localhost:8081/api/restaurant-menu/${restaurantId}`);
    1515                setMenuItems(response.data);
    16                 setCurrentPage(1); // Reset to first page on restaurant change
     16                setCurrentPage(1);
    1717            } catch (err) {
    1818                console.error('Failed to fetch menu:', err);
Note: See TracChangeset for help on using the changeset viewer.