Skip to content

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

Fix

Joshen Limcaedfb51bd89
diff --git a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx
index fee868b8e05..036f2c4de87 100644
--- a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx
+++ b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx
@@ -61,11 +61,13 @@ const CreateBranchSidePanel = ({ visible, onClose }: CreateBranchSidePanelProps)
const githubIntegration = integrations?.find(
(integration) =>
integration.integration.name === 'GitHub' &&
- integration.connections.some((connection) => connection.supabase_project_ref === ref)
+ integration.connections.some(
+ (connection) => connection.supabase_project_ref === projectDetails?.parentRef
+ )
)
const githubConnection = githubIntegration?.connections?.find(
- (connection) => connection.supabase_project_ref === ref
+ (connection) => connection.supabase_project_ref === projectDetails?.parentRef
)
const [repoOwner, repoName] = githubConnection?.metadata.name.split('/') || []
const {