mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 08:18:08 +00:00
Fix service loading issue in project select page
This commit is contained in:
1 parent
16261fc36e
commit
1cb6d594d0
2 files changed
+5
-4
No files matched your search
@@ -47,6 +47,7 @@ class Select extends Component
|
||||
}
|
||||
public function render()
|
||||
{
|
||||
if ($this->search) $this->loadServices();
|
||||
return view('livewire.project.new.select');
|
||||
}
|
||||
|
||||
@@ -68,10 +69,10 @@ class Select extends Component
|
||||
// }
|
||||
// }
|
||||
|
||||
public function loadServices(bool $force = false)
|
||||
public function loadServices()
|
||||
{
|
||||
try {
|
||||
if (count($this->allServices) > 0 && !$force) {
|
||||
if (count($this->allServices) > 0) {
|
||||
if (!$this->search) {
|
||||
$this->services = $this->allServices;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user