diff --git a/app/Livewire/RunCommand.php b/app/Livewire/RunCommand.php index 290618bef..4eae773e1 100644 --- a/app/Livewire/RunCommand.php +++ b/app/Livewire/RunCommand.php @@ -90,6 +90,12 @@ class RunCommand extends Component #[On('connectToContainer')] public function connectToContainer() { + if ($this->selected_uuid === 'default') { + $this->dispatch('error', 'Please select a server or a container.'); + + return; + } + $container = collect($this->containers)->firstWhere('uuid', $this->selected_uuid); $this->dispatch('send-terminal-command',