Fixed rebase conflicts
This commit is contained in:
parent
967e5b4a3d
commit
dde953fa08
@ -43,23 +43,6 @@ const AttendancePage = () => {
|
|||||||
description: "",
|
description: "",
|
||||||
date: new Date().toLocaleDateString(),
|
date: new Date().toLocaleDateString(),
|
||||||
});
|
});
|
||||||
const handler = useCallback(
|
|
||||||
(msg) => {
|
|
||||||
if (selectedProject == msg.projectId) {
|
|
||||||
const updatedAttendance = attendances.map((item) =>
|
|
||||||
item.employeeId === msg.response.employeeId
|
|
||||||
? { ...item, ...msg.response }
|
|
||||||
: item
|
|
||||||
);
|
|
||||||
cacheData("Attendance", {
|
|
||||||
data: updatedAttendance,
|
|
||||||
projectId: selectedProject,
|
|
||||||
});
|
|
||||||
setAttendances(updatedAttendance);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
[selectedProject,attendances]
|
|
||||||
);
|
|
||||||
|
|
||||||
const handler = useCallback(
|
const handler = useCallback(
|
||||||
(msg) => {
|
(msg) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user