Skip to content

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

Ensure that project deletion button cannot be triggered twice

Joshen Limb00198d8b40d
diff --git a/studio/pages/index.tsx b/studio/pages/index.tsx
index 00131d71b84..bb801e931ca 100644
--- a/studio/pages/index.tsx
+++ b/studio/pages/index.tsx
@@ -59,6 +59,7 @@ const Home: NextPage = () => {
const onDeleteProject = async (project?: Project) => {
if (!project) return
+ setIsDeletingProject(true)
const response = await delete_(`${API_URL}/projects/${project.ref}/remove`)
if (response.error) {