We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be8d281 commit dd1645dCopy full SHA for dd1645d
src/Services/DataTable.php
@@ -154,7 +154,7 @@ abstract class DataTable implements DataTableButtons
154
*/
155
public function render($view, $data = [], $mergeData = [])
156
{
157
- if ($this->request()->expectsJson()) {
+ if ($this->request()->ajax() && $this->request()->wantsJson()) {
158
return app()->call([$this, 'ajax']);
159
}
160
0 commit comments