mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix :: filepicker allowing all types even after providing accepted file type (#6161)
This commit is contained in:
parent
0a366f00df
commit
da176d922e
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ export const FilePicker = ({
|
|||
|
||||
const { getRootProps, getInputProps, isDragActive, isDragAccept, isDragReject, acceptedFiles, fileRejections } =
|
||||
useDropzone({
|
||||
accept: parsedFileType,
|
||||
accept: { parsedFileType: [parsedFileType] },
|
||||
noClick: !parsedEnablePicker || disablePicker,
|
||||
noDrag: !parsedEnableDropzone || disablePicker,
|
||||
noKeyboard: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue