set types also for web uploads

This commit is contained in:
Abhinav 2022-06-28 12:42:20 +05:30
parent 3d49d7f4fb
commit aff12411b7

View file

@ -201,10 +201,7 @@ export default function Upload(props: Props) {
};
function analyseUploadFiles(): AnalysisResult {
if (
isElectron() &&
(!uploadType.current || uploadType.current === UPLOAD_TYPE.FILES)
) {
if (isElectron() && uploadType.current === UPLOAD_TYPE.FILES) {
return NULL_ANALYSIS_RESULT;
}
@ -498,6 +495,7 @@ export default function Upload(props: Props) {
};
const handleWebUpload = async (type: UPLOAD_TYPE) => {
uploadType.current = type;
if (type === UPLOAD_TYPE.FILES) {
props.showUploadFilesDialog();
} else if (type === UPLOAD_TYPE.FOLDERS) {