diff --git a/apps/web/src/containers/FileSelect.tsx b/apps/web/src/containers/FileSelect.tsx index 1d62f74..9ce563b 100644 --- a/apps/web/src/containers/FileSelect.tsx +++ b/apps/web/src/containers/FileSelect.tsx @@ -6,8 +6,8 @@ export function FileSelect() { const { selectedFile, setSelectedFile, tickedDownloadAll, toggleTickedDownloadAll } = useStore() const { data: files, isLoading, isFetched, isSuccess, isError, error } = useFiles() const onSelectChange = (e: ChangeEvent) => { - const file = e.target as HTMLSelectElement - setSelectedFile(file.value) + const { value } = e.target as HTMLSelectElement + setSelectedFile(value) } if (isLoading) return
Loading...