fix: Fix: improve error in InputFileComponent when displaying invalid file types (#5064)
* fix: Fix error in InputFileComponent when displaying invalid file types The code changes in this commit fix an issue in the InputFileComponent where an error was not being displayed correctly when the file type was not allowed. The commit adds a fix to properly display the error message with the list of invalid file types.
This commit is contained in:
parent
a8229109a2
commit
d4b9e5e849
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export default function InputFileComponent({
|
|||
// Show an error if the file type is not allowed
|
||||
setErrorData({
|
||||
title: INVALID_FILE_ALERT,
|
||||
list: fileTypes,
|
||||
list: [fileTypes?.join(", ") || ""],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue