fix: add new destination

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

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();