refactor: rename the name to input_id

This commit is contained in:
BennyKok committed 2023-12-15 12:50:31 +08:00
1 parent eac8d709f9
commit e6f5b16a54
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ export async function createRun(
if (inputs && workflow_api) {
for (const key in inputs) {
Object.entries(workflow_api).forEach(([_, node]) => {
if (node.inputs["name"] === key) {
node.inputs["name"] = inputs[key];
if (node.inputs["input_id"] === key) {
node.inputs["input_id"] = inputs[key];
}
});
}