mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
hotfix: webhooks not installing in ui
This commit is contained in:
1 parent
9b6719d5ac
commit
4475d75035
1 file changed
+2
-2
@@ -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`, {})
|
||||
|
||||
Reference in new issue
Block a user