diff --git a/src/Services/DataTable.php b/src/Services/DataTable.php index 30c11bb..ec1faae 100644 --- a/src/Services/DataTable.php +++ b/src/Services/DataTable.php @@ -183,7 +183,7 @@ public function __invoke(): mixed public function render(?string $view = null, array $data = [], array $mergeData = []) { /** @var string $action */ - $action = $this->request()->get('action'); + $action = $this->request()->action; $actionMethod = $action === 'print' ? 'printPreview' : $action; if (in_array($action, $this->actions) && method_exists($this, $actionMethod)) {