The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Shift setting isInitialized into the finally block
Joshen Limff91fc73f49f
diff --git a/studio/stores/common/PostgresMetaInterface.ts b/studio/stores/common/PostgresMetaInterface.tsindex d73b33ed6a3..72496fa116e 100644--- a/studio/stores/common/PostgresMetaInterface.ts+++ b/studio/stores/common/PostgresMetaInterface.ts@@ -106,12 +106,13 @@ export default class PostgresMetaInterface<T> implements IPostgresMetaInterface<this.setError(null)this.setState(LOADING)await this.fetchData()- if (!this.isInitialized) this.isInitialized = truethis.setState(LOADED)} catch (e: any) {console.error('Load error message', e.message)this.setError(e)this.setState(ERROR)+ } finally {+ if (!this.isInitialized) this.isInitialized = true}}