From 638fbe201439a10b35f92738bb06039fbf9b61d4 Mon Sep 17 00:00:00 2001 From: martmull Date: Thu, 13 Mar 2025 10:16:47 +0100 Subject: [PATCH] Fix flash when creating draft (#10814) Always set `serverlessWorkflowVersion = 'draft'` in code steps --- .../components/WorkflowEditActionServerlessFunction.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) => {