fix: async service loads

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

No files matched your search

+1 -1
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;