From 7700a72506ef1ed3ab5df9d85324efe1574f1b39 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 29 Nov 2023 12:48:03 -0300 Subject: [PATCH] Remove backward compatibility code for suffixes in InputFileComponent --- .../src/components/inputFileComponent/index.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index 3c8a5fa76..b77dfed27 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -18,18 +18,6 @@ export default function InputFileComponent({ const { setErrorData } = useContext(alertContext); const { tabId } = useContext(FlowsContext); - // For backward compatibility, if the suffixes are not provided, allow use fileTypes instead - if (!suffixes) { - // if fileTypes does not have '.' at the beginning, add it - // and use it as suffixes - suffixes = fileTypes.map((fileType) => { - if (!fileType.startsWith(".")) { - return "." + fileType; - } - return fileType; - }); - } - // Clear component state useEffect(() => { if (disabled) {