mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 04:46:18 +00:00
no destination found
This commit is contained in:
1 parent
2ae57ae1f1
commit
e69040c799
2 files changed
+16
-4
No files matched your search
@@ -103,10 +103,17 @@ class GithubPrivateRepository extends Component
|
||||
}
|
||||
public function loadDestinations()
|
||||
{
|
||||
$server = $this->servers->where('id', $this->selected_server_id)->first();
|
||||
$this->destinations = $server->standaloneDockers->merge($server->swarmDockers);
|
||||
$this->selected_destination_id = $this->destinations[0]['id'];
|
||||
$this->selected_destination_class = $this->destinations[0]->getMorphClass();
|
||||
try {
|
||||
$server = $this->servers->where('id', $this->selected_server_id)->first();
|
||||
if ($server->standaloneDockers->count() === 0 && $server->swarmDockers->count() === 0) {
|
||||
$this->destinations = 0;
|
||||
}
|
||||
$this->destinations = $server->standaloneDockers->merge($server->swarmDockers);
|
||||
$this->selected_destination_id = $this->destinations[0]['id'];
|
||||
$this->selected_destination_class = $this->destinations[0]->getMorphClass();
|
||||
} catch (\Exception $e) {
|
||||
return generalErrorHandler($e);
|
||||
}
|
||||
}
|
||||
public function submit()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user