Skip to content

Commit 352fd8a

Browse files
authored
Merge pull request #1565 from asirvadAbrahamVarghese/fix-renderer-validator-helper
fix(renderer): Remove redundant indexing logic from data type validation
2 parents 4732f77 + 44ca2fe commit 352fd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-form-renderer/src/use-field-api/validator-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const getValidate = (
9191

9292
return [
9393
...(validate ? validate.map((validator) => prepareValidator(validator, convertedMapper)) : []),
94-
...(dataType ? [dataTypeValidator(dataType)[dataType]()] : []),
94+
...(dataType ? [dataTypeValidator(dataType)() as unknown as ValidatorFunction] : []),
9595
];
9696
};
9797

0 commit comments

Comments
 (0)