Skip to content

Commit 44ca2fe

Browse files
fix(renderer): Remove redundant indexing logic from data type validation
1 parent 4732f77 commit 44ca2fe

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)