Selected Building and Floor Should Persist While Creating Work Area and Activity (Project Infrastructure)

This commit is contained in:
Kartik Sharma 2025-09-27 12:05:04 +05:30
parent 1fb8eb9ef1
commit 874e0806d0

View File

@ -50,8 +50,8 @@ const WorkAreaModel = ({ project, onSubmit, onClose }) => {
: "Work Area created Successfully",
"success"
);
reset({ id: "0", buildingId: "0", areaName: "", floorId: "0" });
// onClose?.();
setValue("id", "0");
setValue("areaName", "");
},
});
@ -194,7 +194,7 @@ const WorkAreaModel = ({ project, onSubmit, onClose }) => {
<button type="submit" className="btn btn-sm btn-primary" disabled={isPending}>
{isPending ? "Please Wait.." : watchWorkAreaId === "0" ? "Add Work Area" : "Update Work Area"}
</button>
</div>
</form>
);