Remove backward compatibility code for suffixes in

InputFileComponent
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-29 12:48:03 -03:00
commit 7700a72506

View file

@ -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) {