fix(inputFileComponent): handle case when fileTypes is undefined to prevent error when joining the array
This commit is contained in:
parent
98d1eecd40
commit
d26b6e36b2
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ export default function InputFileComponent({
|
|||
// Create a file input element
|
||||
const input = document.createElement("input");
|
||||
input.type = "file";
|
||||
input.accept = fileTypes.join(",");
|
||||
input.accept = fileTypes?.join(",");
|
||||
input.style.display = "none"; // Hidden from view
|
||||
input.multiple = false; // Allow only one file selection
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue