diff --git a/src/components/fields/FileInput/FileInput.tsx b/src/components/fields/FileInput/FileInput.tsx index 1e9b7f87..7228fcad 100644 --- a/src/components/fields/FileInput/FileInput.tsx +++ b/src/components/fields/FileInput/FileInput.tsx @@ -155,7 +155,7 @@ function FileInput(props: CubeFileInputProps, ref) { defaultValidationTrigger: 'onChange', valuePropsMapper: ({ value, onChange }) => ({ onChange, - value: type === 'file' ? value : undefined, + value: props.type === 'file' || !props.type ? value : undefined, }), }, );