fix: error on aborting file selection (#951)
* chore: update dependencies * fix: error on abort file selection * feat: explicitly check if selectedFiles length is 0
This commit is contained in:
@@ -93,6 +93,10 @@ export class FilesState {
|
||||
? await StreamingFileReader.getFilesFromHandles([fileOrHandle])
|
||||
: await picker.selectFiles();
|
||||
|
||||
if (selectedFiles.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const uploadedFiles: SNFile[] = [];
|
||||
|
||||
for (const file of selectedFiles) {
|
||||
|
||||
Reference in New Issue
Block a user