added closed fun after create project and changed label name

This commit is contained in:
pramod.mahajan 2025-09-30 14:22:01 +05:30
parent cfd3986479
commit 9c6450496e
4 changed files with 4 additions and 4 deletions

View File

@ -427,7 +427,7 @@ const ManageEmployee = ({ employeeId, onClosed, IsAllEmployee }) => {
aria-label="" aria-label=""
> >
<option disabled value=""> <option disabled value="">
Select Role Select Organization
</option> </option>
{organzationList?.data {organzationList?.data
.sort((a, b) => a?.name?.localeCompare(b?.name)) .sort((a, b) => a?.name?.localeCompare(b?.name))

View File

@ -43,7 +43,7 @@ const ManageProjectInfo = ({ project, onClose }) => {
true true
); );
const { mutate: UpdateProject, isPending } = useUpdateProject(() => {onClose?.()}); const { mutate: UpdateProject, isPending } = useUpdateProject(() => {onClose?.()});
const {mutate:CeateProject,isPending:isCreating}= useCreateProject(()=>onClose?.()) const {mutate:CeateProject,isPending:isCreating} = useCreateProject(()=>{onClose?.()})
const { const {
register, register,

View File

@ -14,7 +14,7 @@ export const useProjectAccess = (projectId) => {
const canView = useHasUserPermission(VIEW_PROJECTS); const canView = useHasUserPermission(VIEW_PROJECTS);
const loading = isLoading || !isFetched; const loading = isLoading || !isFetched;
debugger
useEffect(() => { useEffect(() => {
if (projectId && !loading && !canView) { if (projectId && !loading && !canView) {
showToast("You don't have permission to view project details", "warning"); showToast("You don't have permission to view project details", "warning");

View File

@ -325,7 +325,7 @@ export const useEmployeeForTaskAssign = (
// -- -------------Mutation------------------------------- // -- -------------Mutation-------------------------------
export const useCreateProject = ({ onSuccessCallback }) => { export const useCreateProject = ( onSuccessCallback ) => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
return useMutation({ return useMutation({