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) => {
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();
};