forked from eatvio/eatvio-infra
fixed empty items delete in create plan
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user