Merge pull request #22 from BennyKok/fix/createRun-overwritring-ComfyUIDeployExternalText-inputs

fix(create run): ComfyUIDeployExternalText default value was overwritten
This commit is contained in:
Nick Kao 2024-02-10 11:08:03 -08:00 committed by GitHub
commit 872752b820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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];
}
}
// Fix for external text default value
if (node.class_type == "ComfyUIDeployExternalText") {
node.inputs["default_value"] = inputs[key];
}
});
}
}