Add is_saved_task parameter (#528)
This commit is contained in:
@@ -148,6 +148,7 @@ function createTaskTemplateRequestObject(values: SavedTaskFormValues) {
|
|||||||
return {
|
return {
|
||||||
title: values.title,
|
title: values.title,
|
||||||
description: values.description,
|
description: values.description,
|
||||||
|
is_saved_task: true,
|
||||||
webhook_callback_url: values.webhookCallbackUrl,
|
webhook_callback_url: values.webhookCallbackUrl,
|
||||||
proxy_location: values.proxyLocation,
|
proxy_location: values.proxyLocation,
|
||||||
workflow_definition: {
|
workflow_definition: {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ function createEmptyTaskTemplate() {
|
|||||||
return {
|
return {
|
||||||
title: "New Template",
|
title: "New Template",
|
||||||
description: "",
|
description: "",
|
||||||
|
is_saved_task: true,
|
||||||
webhook_callback_url: null,
|
webhook_callback_url: null,
|
||||||
proxy_location: "RESIDENTIAL",
|
proxy_location: "RESIDENTIAL",
|
||||||
workflow_definition: {
|
workflow_definition: {
|
||||||
@@ -53,7 +54,9 @@ function SavedTasks() {
|
|||||||
queryKey: ["workflows"],
|
queryKey: ["workflows"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const client = await getClient(credentialGetter);
|
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