Skip to content
Snippets Groups Projects
Commit 0238aa1e authored by Štěpán Šonovský's avatar Štěpán Šonovský
Browse files

fix: github commit detail without error

parent a09ad787
No related branches found
No related tags found
No related merge requests found
......@@ -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>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment