Refactor_Expenses #321

Merged
pramod.mahajan merged 249 commits from Refactor_Expenses into hotfix/MasterActivity 2025-08-01 13:14:59 +00:00
Showing only changes of commit a6f5c131a3 - Show all commits

View File

@ -146,12 +146,7 @@ const AttendanceLog = ({
resetPage,
} = usePagination(processedData, 20);
// Reset to the first page whenever processedData changes (due to switch on/off)
useEffect(() => {
resetPage();
}, [processedData, resetPage]);
const handler = useCallback(
const handler = useCallback(
(msg) => {
const { startDate, endDate } = dateRange;
const checkIn = msg.response.checkInTime.substring(0, 10);
@ -167,10 +162,9 @@ const AttendanceLog = ({
);
filtering(updatedAttendance);
resetPage();
}
},
[projectId, dateRange, data, filtering, resetPage]
[projectId, dateRange, data, filtering] // removed resetPage from deps
);
useEffect(() => {