diff --git a/src/components/Project/ProjectInfra.jsx b/src/components/Project/ProjectInfra.jsx index 53394949..eaee8972 100644 --- a/src/components/Project/ProjectInfra.jsx +++ b/src/components/Project/ProjectInfra.jsx @@ -172,7 +172,6 @@ const ProjectInfra = ({ const submitData = async (infraObject) => { try { - debugger let response = await ProjectRepository.manageProjectInfra(infraObject); const entity = response.data; @@ -206,7 +205,8 @@ const ProjectInfra = ({ ...prevProject, buildings: updatedBuildings, } ) ); - closeBuildingModel() + // closeBuildingModel() + } // Handle the floor data else if (entity.floor) { @@ -243,7 +243,7 @@ const ProjectInfra = ({ data: updatedProject, }); setProject( updatedProject ); - closeFloorModel() + // closeFloorModel() } // Handle the work area data else if ( entity.workArea ) @@ -296,7 +296,6 @@ const ProjectInfra = ({ } catch (Err) { showToast("Somthing wrong", "error"); } - handleClose(); };