fix(clone): update destinations method call to ensure correct retrieval of selected destination
This commit is contained in:
		@@ -127,7 +127,7 @@ class CloneMe extends Component
 | 
			
		||||
            $databases = $this->environment->databases();
 | 
			
		||||
            $services = $this->environment->services;
 | 
			
		||||
            foreach ($applications as $application) {
 | 
			
		||||
                $selectedDestination = $this->servers->flatMap(fn ($server) => $server->destinations)->where('id', $this->selectedDestination)->first();
 | 
			
		||||
                $selectedDestination = $this->servers->flatMap(fn ($server) => $server->destinations())->where('id', $this->selectedDestination)->first();
 | 
			
		||||
                clone_application($application, $selectedDestination, [
 | 
			
		||||
                    'environment_id' => $environment->id,
 | 
			
		||||
                ], $this->cloneVolumeData);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user