The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: await on project fetch promise (#9428)
Han Qiao1755b2cb5398
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsxindex bfa2f82db7b..8443168f155 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx@@ -99,7 +99,7 @@ const NotificationsPopover: FC<Props> = () => {if (!projectToApplyMigration) returnconst res = await post(`${API_URL}/database/${projectToApplyMigration.ref}/owner-reassign`, {})if (!res.error) {- app.projects.fetchDetail(projectToApplyMigration.ref)+ await app.projects.fetchDetail(projectToApplyMigration.ref)ui.setNotification({category: 'success',message: `Succesfully applied migration for project "${projectToApplyMigration.name}"`,@@ -121,7 +121,7 @@ const NotificationsPopover: FC<Props> = () => {{})if (!res.error) {- app.projects.fetchDetail(projectToRollbackMigration.ref)+ await app.projects.fetchDetail(projectToRollbackMigration.ref)ui.setNotification({category: 'success',message: `Succesfully rolled back migration for project "${projectToRollbackMigration.name}"`,@@ -143,7 +143,7 @@ const NotificationsPopover: FC<Props> = () => {{})if (!res.error) {- app.projects.fetchDetail(projectToFinalizeMigration.ref)+ await app.projects.fetchDetail(projectToFinalizeMigration.ref)ui.setNotification({category: 'success',message: `Succesfully finalized migration for project "${projectToFinalizeMigration.name}"`,