Skip to content

Commit 75517d9

Browse files
committed
Fix ArrayInput state typing
1 parent 91c8f11 commit 75517d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/ra-ui-materialui/src/input/ArrayInput/ArrayInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export const ArrayInput = (inProps: ArrayInputProps) => {
9191
const { subscribe } = useFormContext();
9292
const { isSubmitted } = useFormState();
9393
const [{ error, hasBeenInteractedWith }, setArrayInputState] =
94-
React.useState({
94+
React.useState<{
95+
error: any;
96+
hasBeenInteractedWith: boolean;
97+
}>({
9598
error: undefined,
9699
hasBeenInteractedWith: false,
97100
});

0 commit comments

Comments
 (0)