Compare commits

...

2 Commits

Author SHA1 Message Date
Juan Di Toro 2cb1ed558a Merge branch 'develop' of git.lumeweb.com:LumeWeb/portal-dashboard into develop 2024-03-28 10:04:42 +01:00
Juan Di Toro 10610db63e fix: cannot upload if there are no files 2024-03-28 10:04:31 +01:00
1 changed files with 1 additions and 5 deletions

View File

@ -257,7 +257,7 @@ const UploadFileForm = () => {
) : null} ) : null}
{!hasStarted && !isCompleted && !isUploading ? ( {!hasStarted && !isCompleted && !isUploading ? (
<Button size={"lg"} className="mt-6" onClick={upload}> <Button size={"lg"} className="mt-6" onClick={upload} disabled={getFiles().length === 0}>
Upload Upload
</Button> </Button>
) : null} ) : null}
@ -265,10 +265,6 @@ const UploadFileForm = () => {
); );
}; };
function bytestoMegabytes(bytes: number) {
return bytes / 1024 / 1024;
}
const UploadFileItem = ({ const UploadFileItem = ({
file, file,
failedState, failedState,