The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add guard for folder upload in StorageExplorerStore
Joshen Lim0e6bad724448
diff --git a/studio/localStores/storageExplorer/StorageExplorerStore.js b/studio/localStores/storageExplorer/StorageExplorerStore.jsindex a5228fa7ea0..f9790478a1b 100644--- a/studio/localStores/storageExplorer/StorageExplorerStore.js+++ b/studio/localStores/storageExplorer/StorageExplorerStore.js@@ -455,6 +455,7 @@ class StorageExplorerStore {return await new Promise((resolve, reject) => fileEntry.file(resolve, reject))} catch (err) {console.error('getFile error:', err)+ return undefined}}@@ -470,8 +471,10 @@ class StorageExplorerStore {const entry = queue.shift() || {}if (entry.isFile) {const file = await this.getFile(entry)- file.path = entry.fullPath.slice(1)- files.push(file)+ if (!isUndefined(file)) {+ file.path = entry.fullPath.slice(1)+ files.push(file)+ }} else if (entry.isDirectory) {queue.push(...(await this.readAllDirectoryEntries(entry.createReader())))}