diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.utils.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.utils.tsx index e20a143b53b..251b39a1475 100644 --- a/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.utils.tsx +++ b/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.utils.tsx @@ -159,7 +159,6 @@ export const getFile = async (fileEntry: FileSystemFileEntry): Promise { - 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 } diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsx index e1b60dbe609..51a67b3c364 100644 --- a/apps/studio/state/storage-explorer.tsx +++ b/apps/studio/state/storage-explorer.tsx @@ -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) } },