Fix Input node issue

This commit is contained in:
NumZ
2025-03-26 15:45:36 +01:00
parent 65b03c9b37
commit 783c387630
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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 => {
+1 -1
View File
@@ -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, " ");