Do not fetch branches if repo not available

This commit is contained in:
neeraj 2024-02-06 13:56:55 +05:30
parent 164fde6c36
commit 7738c6bd5f

View File

@ -31,6 +31,11 @@ const OverviewTabPanel = ({ project }: OverviewProps) => {
const fetchRepoActivity = async () => {
const [owner, repo] = project.repository.split('/');
if (!repo) {
// Do not fetch branches if repo not available
return;
}
// Get all branches in project repo
const result = await octokit.rest.repos.listBranches({
owner,