pramod_Bug#152InfraModals #58

Merged
vikas.nale merged 7 commits from pramod_Bug#152InfraModals into Issues_April_5W 2025-05-03 04:40:14 +00:00
Showing only changes of commit 4037fb76fd - Show all commits

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