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