fix: add new destination

This commit is contained in:
Andras Bacsai committed 2023-12-11 13:02:29 +01:00
1 parent af6d94c0d8
commit dbc55233cb
3 files changed
+12 -6

No files matched your search

-3
View File
@@ -109,9 +109,6 @@ class Select extends Component
if (count($this->servers) === 1) {
$server = $this->servers->first();
$this->setServer($server);
if (count($server->destinations()) === 1) {
$this->setDestination($server->destinations()->first()->uuid);
}
}
if (!is_null($this->server)) {
$foundServer = $this->servers->where('id', $this->server)->first();