From 366482f39fc06a24c8bc250de54dce593b93d3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Tue, 6 Dec 2022 14:56:49 +0300 Subject: [PATCH] table line action attribute issue --- app/View/Components/Table/Actions.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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) {