Fixed import/export issues with subflows and parent workflows

This commit is contained in:
frikky
2022-12-06 14:52:13 +00:00
committed by GitHub
parent 8c21ad07ed
commit 23c0d7e2ac
3 changed files with 54 additions and 53 deletions
+28 -28
View File
@@ -2271,35 +2271,35 @@ const Workflows = (props) => {
"",
data.status,
)
.then((response) => {
if (response !== undefined) {
// SET THE FULL THING
data.id = response.id;
data.first_save = false;
data.previously_saved = false;
data.is_valid = false;
.then((response) => {
if (response !== undefined) {
// SET THE FULL THING
data.id = response.id;
data.first_save = false;
data.previously_saved = false;
data.is_valid = false;
// Actually create it
setNewWorkflow(
data.name,
data.description,
data.tags,
data.default_return_value,
data,
false,
[],
"",
data.status,
).then((response) => {
if (response !== undefined) {
alert.success("Successfully imported " + data.name);
}
});
}
})
.catch((error) => {
alert.error("Import error: " + error.toString());
});
// Actually create it
setNewWorkflow(
data.name,
data.description,
data.tags,
data.default_return_value,
data,
false,
[],
"",
data.status,
).then((response) => {
if (response !== undefined) {
alert.success("Successfully imported " + data.name);
}
});
}
})
.catch((error) => {
alert.error("Import error: " + error.toString());
});
});
// Actually reads