Implemented signalR for create and update project

This commit is contained in:
ashutosh.nehete 2025-06-12 19:39:56 +05:30
parent 351e5a2b0d
commit 24dc481169
2 changed files with 0 additions and 37 deletions

View File

@ -25,7 +25,6 @@ const ProjectCard = ({ projectData, recall }) => {
useEffect(()=>{
setProjectInfo(projectData);
},[projectData])
// console.log("in card view",projectInfo);
const handleShow = async () => {
try {
setMdifyProjectLoading(true);

View File

@ -61,42 +61,6 @@ const AttendancePage = () => {
[selectedProject,attendances]
);
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, attrecall]
);
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, attrecall]
);
const getRole = (roleId) => {
if (!empRoles) return "Unassigned";
if (!roleId) return "Unassigned";