diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionServerlessFunction.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionServerlessFunction.tsx index c622db517..4e2a67c70 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionServerlessFunction.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionServerlessFunction.tsx @@ -77,8 +77,6 @@ export const WorkflowEditActionServerlessFunction = ({ const theme = useTheme(); const { getIcon } = useIcons(); const serverlessFunctionId = action.settings.input.serverlessFunctionId; - const serverlessFunctionVersion = - action.settings.input.serverlessFunctionVersion; const tabListId = `${WORKFLOW_SERVERLESS_FUNCTION_TAB_LIST_COMPONENT_ID}_${serverlessFunctionId}`; const { activeTabId } = useTabList(tabListId); const { updateOneServerlessFunction } = @@ -102,7 +100,7 @@ export const WorkflowEditActionServerlessFunction = ({ const { formValues, setFormValues, loading } = useServerlessFunctionUpdateFormState({ serverlessFunctionId, - serverlessFunctionVersion, + serverlessFunctionVersion: 'draft', }); const updateOutputSchemaFromTestResult = async (testResult: object) => {