From 0ce19818ec7ccfa7137258bd9c22f2bdbb130dfa Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 23 Oct 2023 22:10:17 -0300 Subject: [PATCH] feat(API): add support for saving parent information when saving a flow store The `saveFlowStore` function in the API controller now accepts a `parent` parameter. This allows the user to specify the parent of the flow when saving it to the store. The `parent` parameter is included in the request payload sent to the server. --- src/frontend/src/controllers/API/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 14309bc0b..70b37489d 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -553,6 +553,7 @@ export async function saveFlowStore(newFlow: { description?: string; style?: FlowStyleType; is_component?: boolean; + parent?: string; }): Promise { try { const response = await api.post(`${BASE_URL_API}store/components/`, { @@ -560,6 +561,7 @@ export async function saveFlowStore(newFlow: { data: newFlow.data, description: newFlow.description, is_component: newFlow.is_component, + parent: newFlow.parent, }); if (response.status !== 201) {