fix new destination

This commit is contained in:
Andras Bacsai
2024-11-07 10:00:18 +01:00
parent 2b518e2291
commit 8e3469bdff

View File

@@ -36,8 +36,10 @@ class Docker extends Component
$this->servers = Server::isUsable()->get(); $this->servers = Server::isUsable()->get();
if ($server_id) { if ($server_id) {
$this->selectedServer = $this->servers->find($server_id); $this->selectedServer = $this->servers->find($server_id);
$this->serverId = $this->selectedServer->id;
} else { } else {
$this->selectedServer = $this->servers->first(); $this->selectedServer = $this->servers->first();
$this->serverId = $this->selectedServer->id;
} }
$this->generateName(); $this->generateName();
} }