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>
<Input
type="file"
key={accept}
key={`${accept}-${filetype}`}
accept={accept}
onChange={(event) => {
if (!event.target.files || !event.target.files.length) return;