Skip to content

Commit

Permalink
Minor: fix validator type error for ingestion workflow form (#14619)
Browse files Browse the repository at this point in the history
* Minor: fix validator type error for ingestion workflow form

* Minor: use customizeValidator method
  • Loading branch information
Sachin-chaurasiya authored Jan 8, 2024
1 parent 3bc5b60 commit 3710113
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
import Form, { IChangeEvent } from '@rjsf/core';
import { RegistryFieldsType } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';
import { customizeValidator } from '@rjsf/validator-ajv8';
import { Button, Space } from 'antd';
import classNames from 'classnames';
import { isUndefined, omit, omitBy } from 'lodash';
Expand Down Expand Up @@ -60,6 +60,11 @@ const IngestionWorkflowForm: FC<IngestionWorkflowFormProps> = ({
[pipeLineType, serviceCategory]
);

const validator = useMemo(
() => customizeValidator<IngestionWorkflowData>(),
[]
);

const isElasticSearchPipeline =
pipeLineType === PipelineType.ElasticSearchReindex;

Expand Down

0 comments on commit 3710113

Please sign in to comment.