fix bug on import workflow

This commit is contained in:
numz
2024-10-14 13:00:43 +02:00
parent fd53153ca8
commit 889ab96f4f
+9
View File
@@ -584,6 +584,15 @@ app.registerExtension({
if (data.error == "none"){
const combo = this.widgets.find(w => w.name === "workflows");
combo.options.values.push(data.file_name);
const nodes_input = Object.fromEntries(
Object.entries(workflow).filter(([k, v]) => v.class_type == "WorkflowInput")
);
const nodes_output = Object.fromEntries(
Object.entries(workflow).filter(([k, v]) => v.class_type == "WorkflowOutput")
);
app.lipsync_studio[data.file_name] = {inputs: nodes_input, outputs: nodes_output};
combo.value = data.file_name;
importWorkflow(this, data.file_name, app)
}else{