hotfix: webhooks not installing in ui

This commit is contained in:
Alaister Young committed 2023-07-17 16:09:30 +08:00
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`, {})