Include max steps in saved task (#499)

This commit is contained in:
Kerem Yilmaz
2024-06-21 13:08:00 -07:00
committed by GitHub
parent 49d7e77b3a
commit 58735a9c20
4 changed files with 77 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ import {
} from "@/components/ui/accordion";
import { OrganizationApiResponse } from "@/api/types";
import { Skeleton } from "@/components/ui/skeleton";
import { MAX_STEPS_DEFAULT } from "../constants";
const createNewTaskFormSchema = z
.object({
@@ -94,7 +95,6 @@ function createTaskRequestObject(formValues: CreateNewTaskFormValues) {
navigation_goal: transform(formValues.navigationGoal),
data_extraction_goal: transform(formValues.dataExtractionGoal),
proxy_location: "RESIDENTIAL",
error_code_mapping: null,
navigation_payload: transform(formValues.navigationPayload),
extracted_information_schema: transform(
formValues.extractedInformationSchema,
@@ -102,8 +102,6 @@ function createTaskRequestObject(formValues: CreateNewTaskFormValues) {
};
}
const MAX_STEPS_DEFAULT = 10;
function CreateNewTaskForm({ initialValues }: Props) {
const queryClient = useQueryClient();
const { toast } = useToast();