Skip to content

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

hotfix: webhooks not installing in ui

Alaister Young4475d75035a9
diff --git a/studio/pages/project/[ref]/database/hooks/index.tsx b/studio/pages/project/[ref]/database/hooks/index.tsx
index ac953ba9c61..12e370a7d77 100644
--- a/studio/pages/project/[ref]/database/hooks/index.tsx
+++ b/studio/pages/project/[ref]/database/hooks/index.tsx
@@ -34,8 +34,8 @@ const HooksPage: NextPageWithLayout = () => {
const canCreateWebhooks = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'triggers')
useEffect(() => {
- if (project?.ref) meta.hooks.load()
- }, [project?.ref])
+ if (ui.selectedProjectRef) meta.hooks.load()
+ }, [ui.selectedProjectRef])
const enableHooksForProject = async () => {
const res = await post(`${API_URL}/database/${ref}/hook-enable`, {})