mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
Refactor repository selection logic in GithubPrivateRepository.php
This commit is contained in:
1 parent
4d72787c83
commit
6027bee3b8
1 file changed
+1
-1
@@ -81,7 +81,7 @@ class GithubPrivateRepository extends Component
|
|||||||
}
|
}
|
||||||
$this->repositories = $this->repositories->sortBy('name');
|
$this->repositories = $this->repositories->sortBy('name');
|
||||||
if ($this->repositories->count() > 0) {
|
if ($this->repositories->count() > 0) {
|
||||||
$this->selected_repository_id = data_get($this->repositories,'0.id');
|
$this->selected_repository_id = data_get($this->repositories->first(), 'id');
|
||||||
}
|
}
|
||||||
$this->current_step = 'repository';
|
$this->current_step = 'repository';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user