fix: do not add the same server twice
This commit is contained in:
parent
45e404b15b
commit
fe19769d82
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ public function loadData()
|
||||||
$this->networks = $this->networks->reject(function ($network) use ($all_networks) {
|
$this->networks = $this->networks->reject(function ($network) use ($all_networks) {
|
||||||
return $all_networks->pluck('id')->contains($network->id);
|
return $all_networks->pluck('id')->contains($network->id);
|
||||||
});
|
});
|
||||||
|
$this->networks = $this->networks->reject(function ($network) {
|
||||||
|
return $this->resource->destination->server->id == $network->server->id;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
public function redeploy(int $network_id, int $server_id)
|
public function redeploy(int $network_id, int $server_id)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue