if assigned employee to project, that employees should display instantly inside Assigned task view and employee list
This commit is contained in:
parent
fe4426af9e
commit
c018ffa455
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user