Compare commits
2 Commits
a2f23ee5ae
...
a8ba185bb8
Author | SHA1 | Date | |
---|---|---|---|
a8ba185bb8 | |||
144f8a0595 |
@ -19,7 +19,7 @@ const taskSchema = z
|
||||
.object({
|
||||
activityID: z.string().min(1, "Activity is required"),
|
||||
plannedWork: z.number().min(1, "Planned Work must be greater than 0"),
|
||||
completedWork: z.number().optional(),
|
||||
completedWork: z.number().min(0, "Completed Work must be greater than 0"),
|
||||
})
|
||||
.refine(
|
||||
(data) =>
|
||||
@ -84,7 +84,6 @@ const EditActivityModal = ({
|
||||
floorId: floor?.id,
|
||||
workAreaId: workArea?.id,
|
||||
};
|
||||
console.log(finalData);
|
||||
|
||||
ProjectRepository.manageProjectTasks([finalData])
|
||||
.then((response) => {
|
||||
|
@ -10,7 +10,7 @@ const taskSchema = z.object({
|
||||
workAreaId: z.string().min(1, "Work Area is required"),
|
||||
activityID: z.string().min(1, "Activity is required"),
|
||||
plannedWork: z.number().min(1, "Planned Work must be greater than 0"),
|
||||
completedWork: z.number().optional(),
|
||||
completedWork: z.number().min(0, "Completed Work must be greater than 0"),
|
||||
});
|
||||
|
||||
const defaultModel = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user