Skip to content

Commit dd1645d

Browse files
authored
Revert "Request expects JSON"
1 parent be8d281 commit dd1645d

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
@@ -154,7 +154,7 @@ abstract class DataTable implements DataTableButtons
154154
*/
155155
public function render($view, $data = [], $mergeData = [])
156156
{
157-
if ($this->request()->expectsJson()) {
157+
if ($this->request()->ajax() && $this->request()->wantsJson()) {
158158
return app()->call([$this, 'ajax']);
159159
}
160160

0 commit comments

Comments
 (0)