Skip to content

Commit

Permalink
chore: optimize imports * 9
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi committed Nov 5, 2024
1 parent 82cca51 commit 2f7d075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/fields/FileInput/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
},
);
Expand Down

0 comments on commit 2f7d075

Please sign in to comment.