Fix issue with loading repositories in GithubPrivateRepository.php

This commit is contained in:
Andras Bacsai 2024-03-05 09:20:50 +01:00
parent 2ffc3f497b
commit a6b3beafbb

View File

@ -79,7 +79,9 @@ public function loadRepositories($github_app_id)
$this->loadRepositoryByPage();
}
}
$this->selected_repository_id = $this->repositories[0]['id'];
if ($this->repositories->count() > 0) {
$this->selected_repository_id = $this->repositories[0]['id'];
}
$this->current_step = 'repository';
}