User with only Self Attendance rights sees error "Request failed with status code 400" on Attendance Log tab

This commit is contained in:
Umesh Desai 2025-06-10 14:43:26 +05:30
parent bab312b9ee
commit 1f09cbd020

View File

@ -58,7 +58,8 @@ const AttendanceLog = ({ handleModalData, projectId, showOnlyCheckout }) => {
};
useEffect(() => {
const { startDate, endDate } = dateRange;
const { startDate, endDate } = dateRange;
if (projectId && startDate && endDate) {
dispatch(
fetchAttendanceData({
projectId,
@ -67,7 +68,8 @@ const AttendanceLog = ({ handleModalData, projectId, showOnlyCheckout }) => {
})
);
setIsRefreshing(false);
}, [dateRange, projectId, dispatch, isRefreshing]);
}
}, [dateRange, projectId, dispatch, isRefreshing]);
useEffect(() => {
const filteredData = showOnlyCheckout