fix(import): Changing 'Filetype' clears the 'File' upload field properly

This commit is contained in:
Murshal Akhtar Ansari
2024-02-14 21:14:02 +03:00
parent 5de1bafdc6
commit f30d299949

View File

@ -256,7 +256,7 @@ export const ImportDialog = () => {
<FormControl> <FormControl>
<Input <Input
type="file" type="file"
key={accept} key={`${accept}-${filetype}`}
accept={accept} accept={accept}
onChange={(event) => { onChange={(event) => {
if (!event.target.files || !event.target.files.length) return; if (!event.target.files || !event.target.files.length) return;