Skip to content

Commit 7bdb907

Browse files
authored
Merge pull request #1 from mariopro/mariopro-patch-1
Refactor action retrieval in render method
2 parents f53cbbd + cb037bc commit 7bdb907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function __invoke(): mixed
183183
public function render(?string $view = null, array $data = [], array $mergeData = [])
184184
{
185185
/** @var string $action */
186-
$action = $this->request()->get('action');
186+
$action = $this->request()->action;
187187
$actionMethod = $action === 'print' ? 'printPreview' : $action;
188188

189189
if (in_array($action, $this->actions) && method_exists($this, $actionMethod)) {

0 commit comments

Comments
 (0)