Skip to content

Commit

Permalink
Update Dashboard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SVinnik99 authored Feb 3, 2024
1 parent aa252c6 commit 9575c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front-end/src/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Dashboard({ date }) {
const location = useLocation();
const searchedDate = location.search.slice(-10);

useEffect(loadDashboard, [date],[]);
useEffect(loadDashboard, [date]);

function loadDashboard() {
const abortController = new AbortController();
Expand Down Expand Up @@ -58,7 +58,7 @@ function Dashboard({ date }) {
}
loadReservations();
return () => abortController.abort();
}, [date, currentDate, reservations.reservation_id]);
}, [date, currentDate, reservations]);

// Load all tables

Expand Down

0 comments on commit 9575c97

Please sign in to comment.