fix(create run): ComfyUIDeployExternalText default value overwriting

This commit is contained in:
EmmanuelMr18 2024-02-10 10:57:54 -06:00
parent 08fe87c8af
commit 97bb2b69c5

View File

@ -90,12 +90,12 @@ export const createRun = withServerPromise(
Object.entries(workflow_api).forEach(([_, node]) => {
if (node.inputs["input_id"] === key) {
node.inputs["input_id"] = inputs[key];
}
// Fix for external text default value
if (node.class_type == "ComfyUIDeployExternalText") {
node.inputs["default_value"] = inputs[key];
}
}
});
}
}