fix: issue with project with no github connections

This commit is contained in:
Jonathan Summers-Muir committed 2023-08-01 22:25:56 +08:00
1 parent 2ede787f75
commit b70dab02cf
1 file changed
+1 -1
@@ -44,7 +44,7 @@ const SidePanelGitHubRepoLinker = ({
const githubIntegrations = integrationData?.filter(
(integration) => integration.integration.name === 'GitHub'
) // github
const existingProjectGithubConnection = githubIntegrations?.[0].connections.find(
const existingProjectGithubConnection = githubIntegrations?.[0]?.connections.find(
(connection) => connection.supabase_project_ref === projectRef
)