From d4b9e5e849812374984a63ba34a1de7dba277dff Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 5 Dec 2024 14:42:36 -0300 Subject: [PATCH] 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. --- .../components/inputFileComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/inputFileComponent/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/inputFileComponent/index.tsx index 28eabb240..ddc30eda7 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/inputFileComponent/index.tsx @@ -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(", ") || ""], }); } }