At New Project popup show the Active selected all the time when popup open.

This commit is contained in:
Kartik Sharma 2025-11-15 15:16:37 +05:30
parent f4b791b430
commit 2252a9c489
2 changed files with 3 additions and 2 deletions

View File

@ -201,7 +201,7 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
<div className="col-12 col-md-6 mb-2"> <div className="col-12 col-md-6 mb-2">
<Label htmlFor="name" required> <Label htmlFor="name" required>
Contact Name Contact Person
</Label> </Label>
<input <input
type="text" type="text"

View File

@ -1,4 +1,5 @@
import { z } from "zod"; import { z } from "zod";
import { PROJECT_STATUS } from "../../utils/constants";
//#region Service Project //#region Service Project
export const projectSchema = z.object({ export const projectSchema = z.object({
@ -26,7 +27,7 @@ export const defaultProjectValues = {
services: [], services: [],
address: "", address: "",
assignedDate: "", assignedDate: "",
statusId: "", statusId: PROJECT_STATUS.find((s) => s.label === "Active")?.id,
contactName: "", contactName: "",
contactPhone: "", contactPhone: "",
contactEmail: "", contactEmail: "",