Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fixed: infinite loading in storage explorer rows (#33051)

Terry Sutton89c324af8439
diff --git a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
index 7ba14a0c7cb..271633b06e9 100644
--- a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
+++ b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
@@ -1339,6 +1339,7 @@ class StorageExplorerStore {
if (this.selectedBucket.id === undefined) return
this.abortApiCalls()
+
this.updateRowStatus(folderName, STORAGE_ROW_STATUS.LOADING, index)
this.pushColumnAtIndex(
{ id: folderId, name: folderName, status: STORAGE_ROW_STATUS.LOADING, items: [] },
@@ -1382,7 +1383,9 @@ class StorageExplorerStore {
index
)
} catch (error: any) {
- if (!error.message.includes('aborted')) {
+ if (error.name === 'AbortError') {
+ this.updateRowStatus(folderName, STORAGE_ROW_STATUS.READY, index)
+ } else {
toast.error(`Failed to retrieve folder contents from "${folderName}": ${error.message}`)
}
}
@@ -1838,7 +1841,6 @@ class StorageExplorerStore {
setSelectedItemToRename = (file: { name: string; columnIndex: number }) => {
this.updateRowStatus(file.name, STORAGE_ROW_STATUS.EDITING, file.columnIndex)
}
-
private updateRowStatus = (
name: string,
status: STORAGE_ROW_STATUS,