mirror of
https://github.com/snowball-tools/snowballtools-base
synced 2025-08-08 14:24:07 +00:00
Do not fetch branches if repo not available
This commit is contained in:
parent
164fde6c36
commit
7738c6bd5f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user