mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
remove redundant toast on files to upload retrieval
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user