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:
parent
ab86ddc38a
commit
0ce19818ec
1 changed files with 2 additions and 0 deletions
|
|
@ -553,6 +553,7 @@ export async function saveFlowStore(newFlow: {
|
||||||
description?: string;
|
description?: string;
|
||||||
style?: FlowStyleType;
|
style?: FlowStyleType;
|
||||||
is_component?: boolean;
|
is_component?: boolean;
|
||||||
|
parent?: string;
|
||||||
}): Promise<FlowType> {
|
}): Promise<FlowType> {
|
||||||
try {
|
try {
|
||||||
const response = await api.post(`${BASE_URL_API}store/components/`, {
|
const response = await api.post(`${BASE_URL_API}store/components/`, {
|
||||||
|
|
@ -560,6 +561,7 @@ export async function saveFlowStore(newFlow: {
|
||||||
data: newFlow.data,
|
data: newFlow.data,
|
||||||
description: newFlow.description,
|
description: newFlow.description,
|
||||||
is_component: newFlow.is_component,
|
is_component: newFlow.is_component,
|
||||||
|
parent: newFlow.parent,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status !== 201) {
|
if (response.status !== 201) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue