From 889ab96f4f6e37c63c8e839746fcde4e78534761 Mon Sep 17 00:00:00 2001 From: numz Date: Mon, 14 Oct 2024 13:00:43 +0200 Subject: [PATCH] fix bug on import workflow --- web/js/jsnodes.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/js/jsnodes.js b/web/js/jsnodes.js index f5a4ff4..6bb1d81 100644 --- a/web/js/jsnodes.js +++ b/web/js/jsnodes.js @@ -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{