Fix function input computation in workflow code step (#12440)

As title
Fix consist by awaiting for getFunctionInputFromSourceCode response
This commit is contained in:
martmull
2025-06-03 16:50:46 +02:00
committed by GitHub
parent 7ab3d19e64
commit 0e68602030
2 changed files with 5 additions and 3 deletions

View File

@ -150,7 +150,7 @@ export const WorkflowEditActionServerlessFunction = ({
return;
}
const newFunctionInput = getFunctionInputFromSourceCode(sourceCode);
const newFunctionInput = await getFunctionInputFromSourceCode(sourceCode);
const newMergedInput = mergeDefaultFunctionInputAndFunctionInput({
newInput: newFunctionInput,
oldInput: action.settings.input.serverlessFunctionInput,