Skip to content

Commit

Permalink
- Removes unchecked error state
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-massie committed Feb 14, 2025
1 parent eac0164 commit 7ec34a4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions react/src/components/FileBrowserModal/FileBrowserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const FileBrowserModal = ({
allowedFileExtensions = [],
}: FileBrowserModalProps) => {
const [selectedFiles, setSelectedFiles] = useState<File[]>([]);
const [isMultiSelectError, setIsMultiSelectError] = useState<boolean>(false);
const isSingleSelectMode = useMemo(() => {
return (
JSON.stringify(allowedFileExtensions.sort()) ===
Expand All @@ -42,10 +41,6 @@ const FileBrowserModal = ({
};

const handleImport = () => {
setIsMultiSelectError(false);
if (isSingleSelectMode && selectedFiles.length > 1) {
setIsMultiSelectError(true);
}
if (onImported) {
const tapisFilePaths = convertFilesToTapisPaths(selectedFiles);
onImported(tapisFilePaths);
Expand Down

0 comments on commit 7ec34a4

Please sign in to comment.