removed debugger and close modal fun

This commit is contained in:
Pramod Mahajan 2025-05-03 01:03:45 +05:30
parent b039bf345b
commit 4037fb76fd

View File

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