diff --git a/app/Livewire/Plan/Create.php b/app/Livewire/Plan/Create.php index 98bdc2e..9d776d1 100644 --- a/app/Livewire/Plan/Create.php +++ b/app/Livewire/Plan/Create.php @@ -100,6 +100,9 @@ class Create extends Component $this->$options_type['items'][] = $this->input_items_1; $this->$options_type['items'][] = $this->input_items_2; $this->$options_type['items'][] = $this->input_items_3; + + // delete empty value in items + $this->$options_type['items'] = array_filter($this->$options_type['items'], fn($item) => !empty($item)); $this->reset('input_items_1'); $this->reset('input_items_2'); $this->reset('input_items_3');