fix: removing eager loading (#6071)
since the destionations relationship is not really needed, we could remove it and avoid the issue with the missing eager constraint. Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
This commit is contained in:
		@@ -56,7 +56,6 @@ class CloneMe extends Component
 | 
				
			|||||||
        $this->project_id = $this->project->id;
 | 
					        $this->project_id = $this->project->id;
 | 
				
			||||||
        $this->servers = currentTeam()
 | 
					        $this->servers = currentTeam()
 | 
				
			||||||
            ->servers()
 | 
					            ->servers()
 | 
				
			||||||
            ->with('destinations')
 | 
					 | 
				
			||||||
            ->get()
 | 
					            ->get()
 | 
				
			||||||
            ->reject(fn ($server) => $server->isBuildServer());
 | 
					            ->reject(fn ($server) => $server->isBuildServer());
 | 
				
			||||||
        $this->newName = str($this->project->name.'-clone-'.(string) new Cuid2)->slug();
 | 
					        $this->newName = str($this->project->name.'-clone-'.(string) new Cuid2)->slug();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user