refactor: rename the name to input_id
This commit is contained in:
1 parent
eac8d709f9
commit
e6f5b16a54
2 files changed
+7
-7
No files matched your search
@@ -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];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user