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

Merged
pramod.mahajan merged 1 commits from Kartik_Bug#1372 into Organization_Management 2025-09-27 09:35:28 +00:00

View File

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