From c018ffa4550ff9acf855b32eb657b13a311b756d Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Thu, 10 Jul 2025 13:18:04 +0530 Subject: [PATCH] if assigned employee to project, that employees should display instantly inside Assigned task view and employee list --- src/hooks/useProjects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {