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.
This commit is contained in:
anovazzi1 2023-10-23 22:10:17 -03:00
commit 0ce19818ec

View file

@ -553,6 +553,7 @@ export async function saveFlowStore(newFlow: {
description?: string;
style?: FlowStyleType;
is_component?: boolean;
parent?: string;
}): Promise<FlowType> {
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) {