From 516e8eebc71b6e9813666e1ee34b6da8ee53fe54 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 24 Jun 2025 14:09:07 +0800 Subject: [PATCH] Fix TS issues --- .../components/interfaces/BranchManagement/EditBranchModal.tsx | 2 +- apps/studio/data/integrations/github-branches-query.ts | 2 +- apps/studio/data/integrations/integrations.types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx index 1f058c0ee99..388cd63928b 100644 --- a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx +++ b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx @@ -106,7 +106,7 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalPro if (val.gitBranchName && val.gitBranchName.length > 0 && githubConnection?.id) { try { await checkGithubBranchValidity({ - connectionId: githubConnection.id, + repositoryId: githubConnection.id, branchName: val.gitBranchName, }) setIsGitBranchValid(true) diff --git a/apps/studio/data/integrations/github-branches-query.ts b/apps/studio/data/integrations/github-branches-query.ts index 18a49ece0a0..342238466c5 100644 --- a/apps/studio/data/integrations/github-branches-query.ts +++ b/apps/studio/data/integrations/github-branches-query.ts @@ -19,7 +19,7 @@ export async function getGitHubBranches( }) if (error) handleError(error) - return data as Record[] + return data } export type GitHubBranchesData = Awaited> diff --git a/apps/studio/data/integrations/integrations.types.ts b/apps/studio/data/integrations/integrations.types.ts index cc5c7f3ccce..a453f581771 100644 --- a/apps/studio/data/integrations/integrations.types.ts +++ b/apps/studio/data/integrations/integrations.types.ts @@ -259,7 +259,7 @@ export type IntegrationConnectionsCreateVariables = { export type GitHubConnectionCreateVariables = { organizationId: number - connection: components['schemas']['CreateGitHubConnectionsBody'] + connection: components['schemas']['CreateGitHubConnectionBody'] } export type EnvironmentTargets = 'production' | 'preview' | 'development'