Fix flash when creating draft (#10814)

Always set `serverlessWorkflowVersion = 'draft'` in code steps
This commit is contained in:
martmull
2025-03-13 10:16:47 +01:00
committed by GitHub
parent ebf56b1b19
commit 638fbe2014

View File

@ -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) => {