diff --git a/app/View/Components/Table/Actions.php b/app/View/Components/Table/Actions.php index e86957ddf..fb94ac37d 100644 --- a/app/View/Components/Table/Actions.php +++ b/app/View/Components/Table/Actions.php @@ -36,14 +36,12 @@ class Actions extends Component protected function getActions($actions) { - if (! empty($actions)) { - return $actions; - } + if (empty($actions)) { + $actions = []; - $actions = []; - - if ($this->model && ! empty($this->model->line_actions)) { - $actions = $this->model->line_actions; + if ($this->model && ! empty($this->model->line_actions)) { + $actions = $this->model->line_actions; + } } foreach ($actions as $key => $action) {