diff --git a/views/datagrid.blade.php b/views/datagrid.blade.php index 96348e5..30da813 100644 --- a/views/datagrid.blade.php +++ b/views/datagrid.blade.php @@ -42,7 +42,7 @@ "search": request.searchPhrase } - @unless ($datagridOptions['ajaxParams'] === null) + @unless (empty($datagridOptions['ajaxParams'])) $.extend(true, query, {!! json_encode($datagridOptions['ajaxParams']) !!}); @endunless