"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:
parent
e252c909db
commit
6e2d640542
@ -47,7 +47,7 @@ const BuildingModel = ({
|
||||
}
|
||||
|
||||
return () => {
|
||||
setValue("name", null);
|
||||
setValue("name", "");
|
||||
};
|
||||
}, [clearTrigger, onClearComplete, editingBuilding, project?.id]);
|
||||
|
||||
@ -199,3 +199,5 @@ const BuildingModel = ({
|
||||
};
|
||||
|
||||
export default BuildingModel;
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ const InfraTable = ({ buildings }) => {
|
||||
{
|
||||
building: null,
|
||||
floor: {
|
||||
id: data.id || "0",
|
||||
id: data.id || null,
|
||||
floorName: data.floorName,
|
||||
buildingId: data.buildingId,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user