"In the Manage Building popup (accessed from Project > Project List, by selecting a project and navigating to Infrastructure), the error message is now correctly displayed as 'Building name is required'. A previous issue caused the message 'Expected string, received null' to appear initially."

This commit is contained in:
kartik.sharma 2025-05-16 10:49:54 +05:30 committed by Gitea Admin
parent e252c909db
commit 6e2d640542
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ const BuildingModel = ({
} }
return () => { return () => {
setValue("name", null); setValue("name", "");
}; };
}, [clearTrigger, onClearComplete, editingBuilding, project?.id]); }, [clearTrigger, onClearComplete, editingBuilding, project?.id]);
@ -199,3 +199,5 @@ const BuildingModel = ({
}; };
export default BuildingModel; export default BuildingModel;

View File

@ -31,7 +31,7 @@ const InfraTable = ({ buildings }) => {
{ {
building: null, building: null,
floor: { floor: {
id: data.id || "0", id: data.id || null,
floorName: data.floorName, floorName: data.floorName,
buildingId: data.buildingId, buildingId: data.buildingId,
}, },