remove redundant toast on files to upload retrieval

This commit is contained in:
Francesco Sansalvadore committed 2025-09-17 17:19:42 +02:00
1 parent bf9d3d1282
commit 1e7e3e1dbe
2 files changed
+1 -19

No files matched your search

@@ -159,7 +159,6 @@ export const getFile = async (fileEntry: FileSystemFileEntry): Promise<File | un
// Referenced from: // https://stackoverflow.com/a/53058574
export const getFilesDataTransferItems = async (items: DataTransferItemList) => {
const toastId = toast('Retrieving items to upload...')
const files: (File & { path: string })[] = []
const queue: FileSystemEntry[] = []
for (const item of items) {
@@ -182,7 +181,6 @@ export const getFilesDataTransferItems = async (items: DataTransferItemList) =>
queue.push(...(await readAllDirectoryEntries(dirEntry.createReader())))
}
}
toast.dismiss(toastId)
return files
}
+1 -17
View File
@@ -627,23 +627,7 @@ function createStorageExplorerState({
})
}
} catch (error) {
// Fallback to root if validation fails
state.openedFolders = []
state.columns = [state.selectedBucket.name].map((name) => ({
id: name,
name,
status: STORAGE_ROW_STATUS.READY,
items: [],
hasMoreItems: false,
isLoadingMoreItems: false,
}))
state.clearSelectedItems()
await state.fetchFolderContents({
bucketId: state.selectedBucket.id,
folderId: state.selectedBucket.id,
folderName: state.selectedBucket.name,
index: -1,
})
console.error(error)
}
},