diff --git a/src/components/Project/Infrastructure/BuildingModel.jsx b/src/components/Project/Infrastructure/BuildingModel.jsx index bc72c682..395fbbe1 100644 --- a/src/components/Project/Infrastructure/BuildingModel.jsx +++ b/src/components/Project/Infrastructure/BuildingModel.jsx @@ -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; + + diff --git a/src/components/Project/Infrastructure/InfraTable.jsx b/src/components/Project/Infrastructure/InfraTable.jsx index 91250657..30410c6c 100644 --- a/src/components/Project/Infrastructure/InfraTable.jsx +++ b/src/components/Project/Infrastructure/InfraTable.jsx @@ -31,7 +31,7 @@ const InfraTable = ({ buildings }) => { { building: null, floor: { - id: data.id || "0", + id: data.id || null, floorName: data.floorName, buildingId: data.buildingId, },