update
parent
348acd296d
commit
e20372be23
|
|
@ -61,7 +61,7 @@ class DatasetController extends Controller
|
|||
->orderBy('ms_tabel_data_kolom_id')
|
||||
->get()
|
||||
->groupBy('row_id');
|
||||
|
||||
$total = $data->count();
|
||||
$data = $data->slice($offset, $limit);
|
||||
|
||||
foreach ($data as $rowId => $rows) {
|
||||
|
|
@ -78,8 +78,8 @@ class DatasetController extends Controller
|
|||
}
|
||||
|
||||
return response()->json([
|
||||
'total' => count($_data),
|
||||
'rows' => $_data
|
||||
'total' => $total,
|
||||
'rows' => array_values($_data)
|
||||
]);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue