Add is_saved_task parameter (#528)
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user