fix: async service loads

This commit is contained in:
Andras Bacsai
2024-03-27 14:50:56 +01:00
parent 3fca169096
commit a777db1234
2 changed files with 65 additions and 66 deletions

View File

@@ -49,7 +49,6 @@ class Select extends Component
}
public function render()
{
$this->loadServices();
return view('livewire.project.new.select');
}
@@ -74,6 +73,7 @@ class Select extends Component
public function loadServices(bool $force = false)
{
try {
$this->loadingServices = true;
if (count($this->allServices) > 0 && !$force) {
if (!$this->search) {
$this->services = $this->allServices;