diff --git a/src/app/components/Header/index.tsx b/src/app/components/Header/index.tsx index d0273af..5b5561c 100644 --- a/src/app/components/Header/index.tsx +++ b/src/app/components/Header/index.tsx @@ -45,6 +45,7 @@ export const Header = ({ user }: { user?: User }) => { fetchClass().then(() => { if (selectedClass) setSelectedClass(classes[0]); }); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); return ( diff --git a/src/app/components/Room/Table.tsx b/src/app/components/Room/Table.tsx index 48bb44d..bcf0f56 100644 --- a/src/app/components/Room/Table.tsx +++ b/src/app/components/Room/Table.tsx @@ -10,7 +10,7 @@ export const RoomTable = () => { useEffect(() => { fetchRooms(); - }, [selectedClass]); + }, [fetchRooms, selectedClass]); return (