From 393196a13abd95f294edf6f0d8941df90801b5be Mon Sep 17 00:00:00 2001 From: Salih Altun Date: Thu, 27 Jun 2024 23:38:59 +0300 Subject: [PATCH] Add is_saved_task parameter (#528) --- skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx | 1 + skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx index 5acf2b4a..7478def5 100644 --- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx @@ -148,6 +148,7 @@ function createTaskTemplateRequestObject(values: SavedTaskFormValues) { return { title: values.title, description: values.description, + is_saved_task: true, webhook_callback_url: values.webhookCallbackUrl, proxy_location: values.proxyLocation, workflow_definition: { diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx index 46e4db43..b2607c86 100644 --- a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx +++ b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx @@ -20,6 +20,7 @@ function createEmptyTaskTemplate() { return { title: "New Template", description: "", + is_saved_task: true, webhook_callback_url: null, proxy_location: "RESIDENTIAL", workflow_definition: { @@ -53,7 +54,9 @@ function SavedTasks() { queryKey: ["workflows"], queryFn: async () => { const client = await getClient(credentialGetter); - return client.get("/workflows").then((response) => response.data); + return client + .get("/workflows?only_saved_tasks=true") + .then((response) => response.data); }, });