diff --git a/src/hooks/useProjects.js b/src/hooks/useProjects.js index 43f37fa5..2cc5ee1d 100644 --- a/src/hooks/useProjects.js +++ b/src/hooks/useProjects.js @@ -471,7 +471,7 @@ export const useManageProjectAllocation = ({ }, onSuccess: (data, variables, context) => { queryClient.invalidateQueries({queryKey:['empListByProjectAllocated']}); - + queryClient.removeQueries({queryKey:["projectEmployees"]}) if (variables?.added) { showToast('Employee Assigned Successfully', 'success'); } else {