if assigned employee to project, that employees should display instantly inside Assigned task view and employee list

This commit is contained in:
Pramod Mahajan 2025-07-10 13:18:04 +05:30
parent fe4426af9e
commit c018ffa455

View File

@ -471,7 +471,7 @@ export const useManageProjectAllocation = ({
}, },
onSuccess: (data, variables, context) => { onSuccess: (data, variables, context) => {
queryClient.invalidateQueries({queryKey:['empListByProjectAllocated']}); queryClient.invalidateQueries({queryKey:['empListByProjectAllocated']});
queryClient.removeQueries({queryKey:["projectEmployees"]})
if (variables?.added) { if (variables?.added) {
showToast('Employee Assigned Successfully', 'success'); showToast('Employee Assigned Successfully', 'success');
} else { } else {