diff --git a/apps/dashboard/src/components/workflow-editor/steps/configure-step-form.tsx b/apps/dashboard/src/components/workflow-editor/steps/configure-step-form.tsx index 90d854b5f76..78e3fc78fe3 100644 --- a/apps/dashboard/src/components/workflow-editor/steps/configure-step-form.tsx +++ b/apps/dashboard/src/components/workflow-editor/steps/configure-step-form.tsx @@ -49,7 +49,7 @@ import { ConfigureStepTemplateCta } from '@/components/workflow-editor/steps/con import { ConfigureInAppStepPreview } from '@/components/workflow-editor/steps/in-app/configure-in-app-step-preview'; import { ConfigureEmailStepPreview } from '@/components/workflow-editor/steps/email/configure-email-step-preview'; -const STEP_TYPE_TO_CONTROL_VALUES_FORM: Record React.JSX.Element | null> = { +const STEP_TYPE_TO_INLINE_CONTROL_VALUES: Record React.JSX.Element | null> = { [StepTypeEnum.DELAY]: DelayControlValues, [StepTypeEnum.IN_APP]: () => null, [StepTypeEnum.EMAIL]: () => null, @@ -144,7 +144,7 @@ export const ConfigureStepForm = (props: ConfigureStepFormProps) => { form, isReadOnly, save: (data) => { - // tranform form fields to step update dto + // transform form fields to step update dto const updateStepData: Partial = { name: data.name, ...(data.controlValues ? { controlValues: data.controlValues } : {}), @@ -172,7 +172,7 @@ export const ConfigureStepForm = (props: ConfigureStepFormProps) => { }, [setControlValuesIssues]); const Preview = STEP_TYPE_TO_PREVIEW[step.type]; - const ControlValuesForm = STEP_TYPE_TO_CONTROL_VALUES_FORM[step.type]; + const InlineControlValues = STEP_TYPE_TO_INLINE_CONTROL_VALUES[step.type]; return ( <> @@ -252,7 +252,7 @@ export const ConfigureStepForm = (props: ConfigureStepFormProps) => { <> - + )} diff --git a/apps/dashboard/src/components/workflow-editor/steps/configure-step-template-form.tsx b/apps/dashboard/src/components/workflow-editor/steps/configure-step-template-form.tsx index 0cee96be457..f35fa199241 100644 --- a/apps/dashboard/src/components/workflow-editor/steps/configure-step-template-form.tsx +++ b/apps/dashboard/src/components/workflow-editor/steps/configure-step-template-form.tsx @@ -70,7 +70,7 @@ export const ConfigureStepTemplateForm = (props: ConfigureStepTemplateFormProps) previousData: defaultValues, form, save: (data) => { - // tranform form fields to step update dto + // transform form fields to step update dto const updateStepData: Partial = { controlValues: data, };