diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Http/Livewire/Project/New/PublicGitRepository.php index ebcbb8253..f1f4e9833 100644 --- a/app/Http/Livewire/Project/New/PublicGitRepository.php +++ b/app/Http/Livewire/Project/New/PublicGitRepository.php @@ -72,10 +72,14 @@ class PublicGitRepository extends Component public function load_branch() { try { - $this->branch_found = false; $this->validate([ 'repository_url' => 'required|url' ]); + } catch (\Throwable $e) { + return handleError($e, $this); + } + try { + $this->branch_found = false; $this->get_git_source(); $this->get_branch(); $this->selected_branch = $this->git_branch; diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.php index 78f7742c9..37459187b 100644 --- a/resources/views/livewire/project/new/public-git-repository.blade.php +++ b/resources/views/livewire/project/new/public-git-repository.blade.php @@ -1,13 +1,13 @@