From 783c38763099cc3c32f705cb070c46eb40519935 Mon Sep 17 00:00:00 2001 From: NumZ Date: Wed, 26 Mar 2025 15:45:36 +0100 Subject: [PATCH] Fix Input node issue --- web/js/nodetype_workflow.js | 5 ++--- web/js/workflows.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/js/nodetype_workflow.js b/web/js/nodetype_workflow.js index b10c562..fb1ef6e 100644 --- a/web/js/nodetype_workflow.js +++ b/web/js/nodetype_workflow.js @@ -12,7 +12,7 @@ function initialisation(node) { if (value == "None"){ node.title = "Workflow (FlowChain ⛓️)"; }else{ - node.widgets[1].value = importWorkflow(node, value, app, nodeData); + node.widgets[1].value = importWorkflow(node, value, app); const inputs = app.lipsync_studio[value].inputs; addInputs(node, inputs, {}, true); addOutputs(node, value); @@ -37,7 +37,7 @@ function configure(info) { addOutputs(this, info.widgets_values[0]); removeInputs(this, inputs, info.widgets_values); fitHeight(this); - importWorkflow(this, info.widgets_values[0], app, nodeData) + importWorkflow(this, info.widgets_values[0], app) .then(data => { if (data){ this.widgets[1].value = data; @@ -47,7 +47,6 @@ function configure(info) { addOutputs(this, info.widgets_values[0]); removeInputs(this, inputs, info.widgets_values); fitHeight(this); - //importWorkflow(this, info.widgets_values[0], app, nodeData) } }) .catch(error => { diff --git a/web/js/workflows.js b/web/js/workflows.js index 42f2f96..06b1320 100644 --- a/web/js/workflows.js +++ b/web/js/workflows.js @@ -87,7 +87,7 @@ async function convertWorkflowToApiFormat(standardWorkflow) { } } -export async function importWorkflow(root_obj, workflow_path, app, nodeData, reset_values=true){ +export async function importWorkflow(root_obj, workflow_path, app){ const filename = workflow_path.replace(/\\/g, '/').split("/"); root_obj.title = "Workflow: "+filename[filename.length-1].replace(".json", "").replace(/_/g, " ");