Skip to content

Commit

Permalink
fix(CE): added processFormData to process form data before checking c…
Browse files Browse the repository at this point in the history
…onnection (#262) (#228)

Co-authored-by: Tushar Selvakumar <[email protected]>
  • Loading branch information
github-actions[bot] and macintushar authored Jul 4, 2024
1 parent f28c6f9 commit 800fe3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SourceFormFooter from '@/views/Connectors/Sources/SourcesForm/SourceFormF
import JSONSchemaForm from '@/components/JSONSchemaForm';
import { generateUiSchema } from '@/utils/generateUiSchema';
import { useStore } from '@/stores';
import { processFormData } from '@/views/Connectors/helpers';

const DestinationConfigForm = (): JSX.Element | null => {
const { state, stepInfo, handleMoveForward } = useContext(SteppedFormContext);
Expand All @@ -34,7 +35,8 @@ const DestinationConfigForm = (): JSX.Element | null => {
if (!connectorSchema) return null;

const handleFormSubmit = async (formData: FormData) => {
handleMoveForward(stepInfo?.formKey as string, formData);
const processedFormData = processFormData(formData);
handleMoveForward(stepInfo?.formKey as string, processedFormData);
};

const generatedSchema = generateUiSchema(connectorSchema);
Expand Down

0 comments on commit 800fe3d

Please sign in to comment.