From 0238aa1e43cc3008b1fdaa1387fda8804a596bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20=C5=A0onovsk=C3=BD?= <stepan.sonovsky@inqool.cz> Date: Wed, 21 Aug 2024 10:32:21 +0200 Subject: [PATCH] fix: github commit detail without error --- src/app/components/CommitDetail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/CommitDetail.tsx b/src/app/components/CommitDetail.tsx index 2efcbdb..ef9b3da 100644 --- a/src/app/components/CommitDetail.tsx +++ b/src/app/components/CommitDetail.tsx @@ -12,7 +12,7 @@ interface CommitDetailProps { const CommitDetail: React.FC<CommitDetailProps> = ({ host, projectId, commitSha, token }) => { const isGitHub = host.includes('github'); const { commit, files, loading, error } = useCommitDetails(projectId, commitSha, token, host); - const { files: filesGL, loading: loadingGL, error: errorGL } = useGLCommitFiles(projectId, commitSha, token, host); + const { files: filesGL, loading: loadingGL, error: errorGL } = isGitHub ? {} : useGLCommitFiles(projectId, commitSha, token, host); if (loading) return <p>Loading...</p>; if (error) return <p>Error: {error.message}</p>; -- GitLab